1234567891011121314151617181920212223242526 |
- <?php
- namespace app\data\model;
- use think\admin\Model;
- /**
- * 接单需求模型
- * Class DataUserAcceptance
- * @package app\data\model
- */
- class DataUserAcceptance extends Model
- {
- /**
- * 格式化创建时间
- * @param string $value
- * @return string
- */
- public function getCreateAtAttr(string $value): string
- {
- return format_datetime($value);
- }
- public function user(){
- return $this->belongsTo(DataUser::class,'uuid');
- }
- }
|