123456789101112131415161718192021222324252627 |
- <?php
- namespace app\admin\model;
- use think\Model;
- //用户组
- class DataGroup extends Model
- {
- protected $name = 'data_group';
- protected $pk = 'id';
- protected $autoWriteTimestamp = false;
- public static $status_启用 = 1;//状态:1启用
- public static $status_禁用 = 0;//状态:0禁用
- public static $delete_正常 = 0;//0未删除
- public static $delete_删除 = 1;//1删除
- public static $type_全部 = 0;//全部(这个值不在数据表里体现,只在业务逻辑处理中作为配置项)
- public static $type_可编辑 = 1;//1可编辑
- public static $type_只读 = 2;//2只读
- public static $type_不共享 = 3;//3不共享
- }
|