feat: 添加横幅相关接口

This commit is contained in:
2025-03-10 18:02:19 +08:00
parent 0c3d3a6a2b
commit 2aaee7e2b8
8 changed files with 455 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 横幅模型
* @mixin \think\Model
*/
class SysBannerBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_banner';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'at_platform' => 'string',
'at_page' => 'string',
'at_position' => 'int',
'unique_label' => 'string',
'name' => 'string',
'desc' => 'string',
'sort' => 'sort',
'status' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
];
}