official_website/app/common/model/DictData.php

17 lines
287 B
PHP
Raw Normal View History

2024-12-02 13:57:08 +08:00
<?php
namespace app\common\model;
use think\Model;
class DictData extends Model
{
protected $autoWriteTimestamp = 'datetime';
protected $key = 'dict_code';
public function dictType()
{
return $this->belongsTo(DictType::class,'dict_type','dict_type');
}
}