菜单相关
| 37 | |
| 38 | // 菜单相关 |
| 39 | type CreateMenuRequest struct { |
| 40 | Name string `json:"name" binding:"required"` // 菜单名称 |
| 41 | Path string `json:"path" binding:"required"` // 菜单路径 |
| 42 | ParentId int `json:"parent_id" binding:"gte=0"` // 父菜单ID |
| 43 | Component string `json:"component"` // 组件 |
| 44 | Icon string `json:"icon"` // 图标 |
| 45 | SortOrder int `json:"sort_order" binding:"gte=0"` // 排序 |
| 46 | RouteName string `json:"route_name"` // 路由名称 |
| 47 | Hidden int `json:"hidden" binding:"oneof=0 1"` // 是否隐藏 |
| 48 | } |
| 49 | |
| 50 | type GetMenuRequest struct { |
| 51 | Id int `json:"id" binding:"required,gt=0"` // 菜单ID |
nothing calls this directly
no outgoing calls
no test coverage detected