MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / CreateMenuRequest

Struct CreateMenuRequest

internal/api/req/role_req.go:39–48  ·  view source on GitHub ↗

菜单相关

Source from the content-addressed store, hash-verified

37
38// 菜单相关
39type 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
50type GetMenuRequest struct {
51 Id int `json:"id" binding:"required,gt=0"` // 菜单ID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected