12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\data\model;
- use app\data\model\helpers\HasUser;
- use think\admin\Model;
- /**
- * 应聘信息字表模型
- * Class DataUserApplyJobInfoChild
- * @package app\data\model
- */
- class DataUserApplyJobInfoChild extends Model
- {
- /**
- * 格式化创建时间
- * @param string $value
- * @return string
- */
- public function getCreateAtAttr(string $value): string
- {
- return format_datetime($value);
- }
- public function getContentAttr($_,$model){
- if ($model['content']){
- return json_decode($model['content'],true);
- }
- }
- }
|