- 授权
- 验证码
- GitHub OAuth2
- LinuxDo OAuth2
- 系统API
- 系统Casbin权限
- 系统部门
- 系统字典数据
- 系统字典类型
- 系统角色
- 系统用户
- 登录日志
- 操作日志
- redis监控
- 服务器监控
- 代码生成
- 任务
- 系统数据权限规则
- 系统通知公告
- 系统参数配置
- 系统菜单
- 系统令牌
- 系统上传
- 系统插件
创建菜单
POST
/api/v1/sys/menus
系统菜单
最后修改时间:2025-04-16 13:07:52
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
创建菜单参数
title
string
Title
name
string
Name
path
string
Path
parent_id
Parent Id
Any of
sort
integer
Sort
>= 0
默认值:
0
icon
Icon
Any of
type
enum<integer>
可选
枚举值:
012
component
Component
Any of
perms
Perms
Any of
status
enum<integer>
状态
枚举值:
01
display
enum<integer>
是否显示
枚举值:
01
cache
enum<integer>
是否缓存
枚举值:
01
link
Link
Any of
remark
Remark
Any of
示例
{
"title": "string",
"name": "string",
"path": "string",
"parent_id": 0,
"sort": 0,
"icon": "string",
"type": 0,
"component": "string",
"perms": "string",
"status": 0,
"display": 0,
"cache": 0,
"link": "string",
"remark": "string"
}
返回响应
🟢200成功
application/json
Body
不包含返回数据 schema 的通用型统一返回模型
code
integer
Code
默认值:
200
msg
string
Msg
默认值:
请求成功
data
Data
Any of
示例
{
"code": 200,
"msg": "请求成功",
"data": null
}
🟠422参数错误