文件
nahaichuan/application/admin/model/official/OfficialListProduct.php
2026-10-08 16:23:22 +08:00

37 行
620 B
PHP

<?php
namespace app\admin\model\official;
use traits\model\SoftDelete;
class OfficialListProduct extends BaseModel
{
use SoftDelete;
// 表名
protected $name = 'official_list_product';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
protected $deleteTime = 'deletetime';
// 追加属性
protected $append = [
];
public function getLanguageList()
{
return ['1' => __('Language 1'), '2' => __('Language 2')];
}
}