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 ¶
type MenuTree struct {
// contains filtered or unexported fields
}
func (*MenuTree) GetBackendMenuTree ¶
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
Click to show internal directories.
Click to hide internal directories.