feat: 添加附件(下载管理)分类分页/详情/新增/更新/设置排序值/删除接口

This commit is contained in:
2025-02-21 15:49:39 +08:00
parent 14208a0708
commit d9e11cd9f5
5 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* 附件(下载管理)分类模型
* @mixin \think\Model
*/
class AttachmentCategoryBaseModel extends Model
{
// 表名
protected $name = 'attachment_category';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'name' => 'string',
'sort' => 'int',
'is_show' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
];
}