menu

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: MIT Imports: 13 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c helper.Context, input CreateMenuParams) (res schema.Response)

func CreateRouter

func CreateRouter(c *gin.Context)

func Delete

func Delete(c helper.Context, menuId string) (res schema.Response)

func DeleteMenuById

func DeleteMenuById(id string)

func DeleteRouter

func DeleteRouter(c *gin.Context)

func GetList

func GetList(c helper.Context, input Query) (res schema.Response)

func GetListRouter

func GetListRouter(c *gin.Context)

func GetMenu

func GetMenu(id string) (res schema.Response)

func GetMenuRouter

func GetMenuRouter(c *gin.Context)

func Update

func Update(c helper.Context, bannerId string, input UpdateParams) (res schema.Response)

func UpdateRouter

func UpdateRouter(c *gin.Context)

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 Query

type Query struct {
}

type UpdateParams

type UpdateParams struct {
	Name      *string   `json:"name"`      // 菜单名
	Url       *string   `json:"url"`       // 菜单链接的 URL 地址
	Icon      *string   `json:"icon"`      // 菜单的图标
	Accession *[]string `json:"accession"` // 该菜单所需要的权限
	Sort      *int      `json:"sort"`      // 菜单排序, 越大的越靠前
	ParentId  *string   `json:"parent_id"` // 该菜单的父级 ID
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL