SystemAuth.php 374 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. /**
  5. * 用户权限模型
  6. * Class SystemAuth
  7. * @package app\admin\model
  8. */
  9. class SystemAuth extends Model
  10. {
  11. /**
  12. * 格式化创建时间
  13. * @param string $value
  14. * @return string
  15. */
  16. public function getCreateAtAttr(string $value): string
  17. {
  18. return format_datetime($value);
  19. }
  20. }