errorcode.php 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. const SUCCESS = 0;
  3. const NOTHING_UPDATE = 1;
  4. const REQUEST_SUCCESS = 0;
  5. const REQUEST_PARAM_ERROR = 101;
  6. const REQUEST_DATABASE_ERROR = 102;
  7. const EMPTY_USER_NAME = 110;
  8. const EMPTY_USER_ID = 111;
  9. const INVALID_USER_ID = 112;
  10. const EMPTY_USER_PASSWORD = 113;
  11. const EMPTY_ROLE_NAME = 220;
  12. const EMPTY_ROLE_ID = 221;
  13. const INVALID_ROLE_ID = 222;
  14. const ALREADY_EXIST_ROLE = 223;
  15. const EMPTY_OWNER_TYPE = 310;
  16. const EMPTY_OWNER_ID = 311;
  17. const EMPTY_BAR_ID = 410;
  18. const INVALID_U_A_ID = 510;
  19. return [
  20. "0" => "success",
  21. "1" => "nothing to update",
  22. "101" => "params error",
  23. "102" => "database operation error",
  24. "111" => "empty user id",
  25. "112" => "invalid user id",
  26. "220" => "empty role name",
  27. "221" => "empty role id",
  28. "222" => "invalid role id",
  29. "223" => "already exist role",
  30. "310" => "empty owner type",
  31. "311" => "empty owner id",
  32. "410" => "empty action bar id",
  33. "510" => "invalid user-action-bar id",
  34. ];