CommonModel.php 807 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\model;
  3. //不是模型表,只是一个错误码
  4. class CommonModel
  5. {
  6. //错误码
  7. public static $success= 0;//请求成功
  8. public static $error_token = 1003;//token错误
  9. public static $error_param = 1004;//参数错误
  10. public static $error_default = 1005;//业务错误
  11. public static $error_other = 1006;//其他错误
  12. //是否删除
  13. public static $del_normal=0;//未删除
  14. public static $del_deleted=1;//已删除
  15. //状态
  16. public static $status_normal=1;//启用
  17. public static $status_disable=0;//禁用
  18. //置顶
  19. public static $top_yes = 1;//置顶
  20. public static $top_no = 0;//不置顶
  21. //库存操作来源
  22. public static $source_admin = 1 ;//后台操作
  23. public static $source_account = 2 ;//客户操作
  24. }