vo

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuVO struct {
	*models.Menu
	Children []*models.Menu `json:"children"`
}

最小菜单树结构

func BuildMenuTree

func BuildMenuTree(menuList []*models.Menu) (menuTree []*MenuVO)

构建 menu tree

type UserVO

type UserVO struct {
	*models.UserApp
	Token string `json:"token"`
}

前端需要的数据结构

func BuildUserVO

func BuildUserVO(token string, user *models.UserApp) (uVO *UserVO)

携带token

func BuildUserVOList

func BuildUserVOList(userList ...*models.UserApp) (userVOList []*UserVO)

用户列表,不带token

Jump to

Keyboard shortcuts

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