service

package
v0.0.0-...-8b404d4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 菜单类型
	MENU_TYPE_FRONT   string = "front"   // 前台
	MENU_TYPE_BACKEND string = "backend" // 后台
)

Variables

View Source
var Post *post
View Source
var User *user

Functions

This section is empty.

Types

type MenuTree struct {
	// contains filtered or unexported fields
}
func (m *MenuTree) GetBackendMenuTree() *MenuTree

type UserInfoMap

type UserInfoMap map[string]interface{}

用户信息

func NewUserInfoMap

func NewUserInfoMap() UserInfoMap

func (UserInfoMap) ConvertToUserModel

func (um UserInfoMap) ConvertToUserModel() (userObj *model.User)

* 将Map数据转换成user model

func (UserInfoMap) GetAliasName

func (um UserInfoMap) GetAliasName() string

func (UserInfoMap) GetAvatar

func (um UserInfoMap) GetAvatar() string

func (UserInfoMap) GetMail

func (um UserInfoMap) GetMail() string

func (UserInfoMap) GetUserId

func (um UserInfoMap) GetUserId() int64

func (UserInfoMap) GetUserName

func (um UserInfoMap) GetUserName() string

Jump to

Keyboard shortcuts

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