123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- const SUCCESS = 0;
- const NOTHING_UPDATE = 1;
- const REQUEST_SUCCESS = 0;
- const REQUEST_PARAM_ERROR = 101;
- const REQUEST_DATABASE_ERROR = 102;
- const PARAM_ARRAY_INT = 103;
- 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 PERMISSION_DENIED = 403;
- const INVALID_U_A_ID = 510;
- const EMPTY_GROUP_NAME = 610;
- const EMPTY_GROUP_ID = 611;
- const REPEAT_GROUP_NAME = 612;
- const INVALID_GROUP_ID = 613;
- const EMPTY_GROUP_USER_ID = 710;
- const INVALID_GROUP_USER_ID = 711;
- const EMPTY_ACTION_BAR_NAME = 810;
- const EMPTY_ACTION_BAR_ID = 811;
- const INVALID_ACTION_BAR_ID= 812;
- const INVALID_ACTION_PARENT = 813;
- return [
- "0" => "success",
- "1" => "nothing to update",
- "101" => "params error",
- "102" => "database operation error",
- "103" => "params should be int array",
- "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",
- "403" => "permission denied",
- "510" => "invalid user-action-bar id",
- "610" => "empty group name",
- "611" => "empty group id",
- "612" => "repeat group name",
- "613" => "invalid group id",
- "710" => "empty group-user id",
- "711" => "invalid group-user id",
- "810" => "empty action-bar name",
- "811" => "empty action-bar id",
- "812" => "invalid action-bar id",
- "813" => "invalid action-bar parent",
- ];
|