12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- const SUCCESS = 0;
- const NOTHING_UPDATE = 1;
- const REQUEST_SUCCESS = 0;
- const REQUEST_PARAM_ERROR = 101;
- const REQUEST_DATABASE_ERROR = 102;
- const EMPTY_USER_NAME = 110;
- const EMPTY_USER_ID = 111;
- const INVALID_USER_ID = 112;
- const EMPTY_USER_PASSWORD = 113;
- const EMPTY_ROLE_NAME = 220;
- const EMPTY_ROLE_ID = 221;
- const INVALID_ROLE_ID = 222;
- const ALREADY_EXIST_ROLE = 223;
- const EMPTY_OWNER_TYPE = 310;
- const EMPTY_OWNER_ID = 311;
- const EMPTY_BAR_ID = 410;
- const INVALID_U_A_ID = 510;
- return [
- "0" => "success",
- "1" => "nothing to update",
- "101" => "params error",
- "102" => "database operation error",
- "111" => "empty user id",
- "112" => "invalid user id",
- "220" => "empty role name",
- "221" => "empty role id",
- "222" => "invalid role id",
- "223" => "already exist role",
- "310" => "empty owner type",
- "311" => "empty owner id",
- "410" => "empty action bar id",
- "510" => "invalid user-action-bar id",
- ];
|