feat: 新增导航分类分页/详情/新增/更新/删除接口
This commit is contained in:
@@ -3,13 +3,38 @@ declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
/**
|
||||
* 导航模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class SysNavigationBaseModel extends BaseModel
|
||||
{
|
||||
// 启用软件删除
|
||||
use SoftDelete;
|
||||
// 软件删除字段
|
||||
protected $deleteTime = 'deleted_at';
|
||||
|
||||
// 表名
|
||||
protected $name = 'sys_navigation';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'at_page' => 'string',
|
||||
'at_platform' => 'string',
|
||||
'unique_label' => 'string',
|
||||
'name' => 'string',
|
||||
'desc' => 'string',
|
||||
'sort' => 'int',
|
||||
'status' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime'
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user