Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(c helper.Context, input CreateMenuParams) (res schema.Response)
- func CreateRouter(c *gin.Context)
- func Delete(c helper.Context, menuId string) (res schema.Response)
- func DeleteMenuById(id string)
- func DeleteRouter(c *gin.Context)
- func GetList(c helper.Context, input Query) (res schema.Response)
- func GetListRouter(c *gin.Context)
- func GetMenu(id string) (res schema.Response)
- func GetMenuRouter(c *gin.Context)
- func Update(c helper.Context, bannerId string, input UpdateParams) (res schema.Response)
- func UpdateRouter(c *gin.Context)
- type CreateMenuParams
- type Query
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func DeleteMenuById ¶
func DeleteMenuById(id string)
func DeleteRouter ¶
func GetListRouter ¶
func GetMenuRouter ¶
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.