refactor: 修改model

This commit is contained in:
2025-01-13 09:28:15 +08:00
parent 5c3b3d9953
commit 7fb9c06321
15 changed files with 231 additions and 143 deletions

View File

@@ -3,28 +3,12 @@ declare (strict_types = 1);
namespace app\admin\model\v1;
use think\Model;
use app\common\model\CountryBaseModel;
/**
* @mixin \think\Model
*/
class CountryModel extends Model
class CountryModel extends CountryBaseModel
{
// 表名
protected $name = 'sys_country';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'name' => 'string',
'code' => 'string',
'icon' => 'string',
'status' => 'int',
'sort' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
}