AuthGroup.php 376 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. class AuthGroup extends Model
  5. {
  6. // 开启自动写入时间戳字段
  7. protected $autoWriteTimestamp = 'int';
  8. // 定义时间戳字段名
  9. protected $createTime = 'createtime';
  10. protected $updateTime = 'updatetime';
  11. public function getNameAttr($value, $data)
  12. {
  13. return __($value);
  14. }
  15. }