Appearance
创建菜单 API
| Path | Method | Created At |
|---|---|---|
| /api/rbac/menus/item | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,max:128 | 路由名称长度不能超过128个字符 |
| title | string,max:32 | 菜单标题长度不能超过32个字符 |
| path | string,max:128 | 路由路径长度不能超过128个字符 |
| pid | integer,min:0 | 父级菜单ID错误 |
| component_path | string,max:128 | 组件路径长度不能超过128个字符 |
| rank | integer,min:0 | 排序必须是整数,且不能小于0 |
| redirect | string,max:128 | 重定向路径长度不能超过128个字符 |
| icon | string,max:32 | 图标不能超过32个字符 |
| icon_right | string,max:64 | 右侧图标长度不能超过64个字符 |
| enter_transition | string,max:64 | 进场动画长度不能超过64个字符 |
| leave_transition | string,max:64 | 出场动画长度不能超过64个字符 |
| active_path | string,max:128 | 激活的菜单字段错误 |
| show_link | App\Rules\BoolRule | 菜单是否显示字段错误 |
| show_parent | App\Rules\BoolRule | 父级菜单是否显示字段错误 |
| keepalive | App\Rules\BoolRule | 是否缓存页面字段错误 |
| menu_type | in:0,1,2,3 | 菜单类型字段错误 |
| fixed_tag | App\Rules\BoolRule | 固定标签页字段错误 |
| permission | string,length:8 | 关联接口 |
Response
| Key | Type | Example | Comment |
|---|