forked from lxh/go-wxhelper
17 lines
780 B
Go
17 lines
780 B
Go
|
package menu
|
||
|
|
||
|
import "wechat-robot/pkg/types"
|
||
|
|
||
|
// Save
|
||
|
// @description: 保存菜单入参
|
||
|
type Save struct {
|
||
|
Id string `json:"id" form:"id" comment:"菜单Id"`
|
||
|
Type types.MenuType `json:"type" form:"type" comment:"菜单类型(菜单或按钮)" validate:"oneof=MENU BUTTON"`
|
||
|
Name string `json:"name" form:"name" comment:"页面组件名称"`
|
||
|
Path string `json:"path" form:"path" comment:"访问路径"`
|
||
|
Title string `json:"title" form:"title" comment:"菜单标题"`
|
||
|
Icon string `json:"icon" form:"icon" comment:"菜单图标"`
|
||
|
Sort int `json:"sort" form:"sort" comment:"排序值(数字越小越靠前)"`
|
||
|
ParentId string `json:"parentId" form:"parentId" comment:"父级菜单ID"`
|
||
|
}
|