feat: 新增菜单列表/分页/详情/新增/更新/导入/导出/删除接口

This commit is contained in:
2025-02-28 18:13:40 +08:00
parent a2a75c930a
commit a42be5696a
8 changed files with 714 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
use think\Model;
/**
* 菜单能力权限模型
* @mixin \think\Model
*/
class SysMenuAbilityPermissionBaseModel extends Model
{
// 表名
protected $name = 'sys_menu_ability_permission';
// 字段信息
protected $schema = [
'menu_id' => 'int',
'ability_name' => 'string',
'permission' => 'string',
'sort' => 'int'
];
}

View File

@@ -0,0 +1,37 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 菜单模型
* @mixin \think\Model
*/
class SysMenuBaseModel extends BaseModel
{
// 表名
protected $name = 'sys_menu';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'pid' => 'int',
'title' => 'string',
'name' => 'string',
'path' => 'string',
'icon' => 'string',
'redirect' => 'string',
'component' => 'string',
'hidden' => 'int',
'actived' => 'int',
'keep_alive' => 'int',
'sort' => 'int',
'status' => 'int',
'created_at' => 'int',
'updated_at' => 'int',
'deleted_at' => 'int',
];
}