feat: 添加附件(下载管理)分页/详情/新增/更新/设置排序值/删除接口
This commit is contained in:
40
app/common/model/AttachmentBaseModel.php
Normal file
40
app/common/model/AttachmentBaseModel.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 附件(下载管理)模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class AttachmentBaseModel extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'attachment';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'category_id' => 'int',
|
||||
'name' => 'string',
|
||||
'desc' => 'string',
|
||||
'image' => 'string',
|
||||
'applicable_to' => 'string',
|
||||
'support_platform' => 'string',
|
||||
'attach' => 'string',
|
||||
'sort' => 'int',
|
||||
'recommend' => 'int',
|
||||
'seo_title' => 'string',
|
||||
'seo_keywords' => 'string',
|
||||
'seo_desc' => 'string',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user