feat: 添加问答分页/详情/新增/更新/设置排序值/删除接口

This commit is contained in:
2025-03-13 11:15:22 +08:00
parent 27c04754aa
commit 825ea45eb7
5 changed files with 311 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* FAQ模型
* @mixin \think\Model
*/
class FaqBaseModel extends BaseModel
{
// 表名
protected $name = 'faq';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'language_id' => 'int',
'image' => 'string',
'question' => 'string',
'answer' => 'string',
'recommend' => 'int',
'sort' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
];
}