CommonModel.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 $error_layer = 1010;//弹出
  14. //是否删除
  15. public static $del_normal=0;//未删除
  16. public static $del_deleted=1;//已删除
  17. //状态
  18. public static $status_normal=1;//启用
  19. public static $status_disable=0;//禁用
  20. //置顶
  21. public static $top_yes = 1;//置顶
  22. public static $top_no = 0;//不置顶
  23. //库存操作来源
  24. public static $source_admin = 1 ;//后台操作
  25. public static $source_account = 2 ;//客户操作
  26. //状态:0未发货,1已发货,2已收货
  27. public static $status_not_deliver = 0;
  28. public static $status_deliver = 1;
  29. public static $status_receipt = 2;
  30. }