123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\admin\model;
- class RoleProcess extends Base
- {
- protected $schema = [
- 'id' =>'int',
- 'role_id' =>'int',
- 'action_data' =>'text',
- 'is_del' =>'tinyint',
- 'createrid' =>'int',
- 'creater' =>'varchar',
- 'addtime' =>'datetime',
- 'updaterid' =>'int',
- 'updater' =>'varchar',
- 'updatetime' =>'datetime',
- ];
- protected $updateTime='updatetime';
- protected $createTime='addtime';
- public function getActionDataAttr($value)
- {
- return explode(',',$value);
- }
- public function setActionDataAttr($value)
- {
- return implode(',',$value);
- }
- }
|