系统管理 菜单管理 - Aladdin-GIS/XiShiGIS GitHub Wiki

1、根据用户初始化系统菜单

请求地址: Menu/GetMenu

请求方式: get

输入:

名称 类型 注释 默认值
pid int 部门父ID 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

2、获得菜单列表

请求地址: Menu/GetAll

请求方式: post

输入:

名称 类型 注释 默认值
start int 页码 0
limit int 每页数量 10
order string 排序 null
sort string 排序方式 null
search string 检索条件 null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

3、修改菜单

请求地址: Menu/Modify

请求方式: post

输入:

名称 类型 注释 默认值
M_CODE string 编码 null
M_TEXT string 名称 null
M_ENABLED string 是否启用 null
M_HANDLER string 触发事件 null
M_SORT string 排序 null
M_REMARK int 备注 null
M_PTEXT int 上级名称 null
M_PID int 上级ID null
M_ID int 菜单ID null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

4、根据菜单ID获得子菜单

请求地址: Menu/GetAllByPID

请求方式: get

输入:

名称 类型 注释 默认值
pid int 菜单ID 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200