| 1234567891011121314151617181920 | 
							- <?php
 
- namespace app\common\model;
 
- class TalentUserModel extends BaseModel
 
- {
 
-     // 设置表名
 
-     protected $name = 'talent_user';
 
-     // 常量
 
-     const STATUS = [1 => '正常', 2 => '禁用'];
 
-     const STATUS_NORMAL  = 1;
 
-     const STATUS_DISABLE = 2;
 
-     public function getStatusTextAttr($value, $data)
 
-     {
 
-         return self::STATUS[$data['status']];
 
-     }
 
- }
 
 
  |