SysRole.php 318 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class SysRole extends Model
  5. {
  6. // 关联表
  7. protected $table = 'sys_role';
  8. protected $primaryKey = 'role_id';
  9. public const UPDATED_AT = null;
  10. public function getRoleAddtimesAttribute($value)
  11. {
  12. return date('Y-m-d H:i:s',$value);
  13. }
  14. }