Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(context controller.Context, input CreateMenuParams) (res schema.Response)
- func CreateRouter(context *gin.Context)
- func Delete(context controller.Context, menuId string) (res schema.Response)
- func DeleteMenuById(id string)
- func DeleteRouter(context *gin.Context)
- func GetList(context controller.Context, input Query) (res schema.Response)
- func GetListRouter(context *gin.Context)
- func GetMenu(id string) (res schema.Response)
- func GetMenuRouter(context *gin.Context)
- func Update(context controller.Context, bannerId string, input UpdateParams) (res schema.Response)
- func UpdateRouter(context *gin.Context)
- type CreateMenuParams
- type Query
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(context controller.Context, input CreateMenuParams) (res schema.Response)
func CreateRouter ¶
func DeleteMenuById ¶
func DeleteMenuById(id string)
func DeleteRouter ¶
func GetListRouter ¶
func GetMenuRouter ¶
func Update ¶
func Update(context controller.Context, bannerId string, input UpdateParams) (res schema.Response)
func UpdateRouter ¶
Types ¶
type CreateMenuParams ¶
type CreateMenuParams struct {
Name string `json:"name" valid:"required~请填写菜单名"` // 菜单名
Url *string `json:"url"` // 菜单链接的 URL 地址
Icon *string `json:"icon"` // 菜单的图标
Accession *[]string `json:"accession"` // 该菜单所需要的权限
Sort int `json:"sort" ` // 菜单排序, 越大的越靠前
ParentId *string `json:"parent_id"` // 该菜单的父级 ID
}
type UpdateParams ¶
Click to show internal directories.
Click to hide internal directories.