WorkAction.php 994 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\bug\model;
  3. use think\model\concern\SoftDelete;class WorkAction extends Base
  4. {
  5. //设置字段信息
  6. use SoftDelete;
  7. protected $schema = [
  8. 'id' =>'int',//
  9. 'action_name' =>'varchar',//功能名称
  10. 'menu_id' =>'int',//归属菜单页面id
  11. 'belong' =>'tinyint',//系统归属1采销2结算3数据统计
  12. 'belong_action' =>'text',//功能集合
  13. 'apply_id' =>'int',//申请人id
  14. 'apply_name' =>'varchar',//申请人名称
  15. 'createTime' =>'datetime',//
  16. 'updateTime' =>'datetime',//
  17. 'delete_time' =>'datetime',//
  18. ];
  19. protected $updateTime='updateTime';
  20. protected $createTime='createTime';
  21. protected $deleteTime = 'delete_time';
  22. public function GetBelongActionAttr($v){
  23. return json_decode($v,true);
  24. }
  25. public function SetBelongActionAttr($v){
  26. return json_encode($v,JSON_UNESCAPED_UNICODE);
  27. }
  28. }