ApiErrorCode.php 588 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by CRMEB.
  4. * User: 136327134@qq.com
  5. * Date: 2019/4/12 11:19
  6. */
  7. namespace crmeb\utils;
  8. /**
  9. * 错误码统一存放类
  10. * Class ApiErrorCode
  11. * @package crmeb\services
  12. */
  13. class ApiErrorCode
  14. {
  15. const SUCCESS = [200, 'SUCCESS'];
  16. const ERROR = [400, 'ERROR'];
  17. const ERR_LOGIN = [410000, 'Landing overdue'];
  18. const ERR_AUTH = [400011, 'You do not have permission to access for the time being'];
  19. const ERR_RULE = [400012, 'Interface is not authorized, you cannot access'];
  20. const ERR_ADMINID_VOID = [400013, 'Failed to get administrator ID'];
  21. }