feat: 添加横幅相关接口

This commit is contained in:
2025-03-10 18:02:19 +08:00
parent a335ad4a8b
commit 994cd2a658
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',
];
}

View File

@@ -0,0 +1,37 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 横幅数据项模型
* @mixin \think\Model
*/
class SysBannerItemBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_banner_item';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'banner_id' => 'int',
'title' => 'string',
'title_txt_color' => 'string',
'desc' => 'string',
'desc_txt_color' => 'string',
'type' => 'int',
'image' => 'string',
'video' => 'string',
'link_to' => 'string',
'link' => 'string',
'sort' => 'int',
'status' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime'
];
}