登录用户信息和树结构
This commit is contained in:
28
lib/core/vo/login_user.go
Normal file
28
lib/core/vo/login_user.go
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
package vo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"ems.agt/lib/dborm"
|
||||||
|
)
|
||||||
|
|
||||||
|
// LoginUser 登录用户身份权限信息对象
|
||||||
|
type LoginUser struct {
|
||||||
|
// UserID 用户ID
|
||||||
|
UserID string `json:"userId"`
|
||||||
|
|
||||||
|
// UserName 用户名
|
||||||
|
UserName string `json:"userName"`
|
||||||
|
|
||||||
|
// LoginTime 登录时间时间戳
|
||||||
|
LoginTime int64 `json:"loginTime"`
|
||||||
|
|
||||||
|
// ExpireTime 过期时间时间戳
|
||||||
|
ExpireTime int64 `json:"expireTime"`
|
||||||
|
|
||||||
|
// Permissions 权限列表
|
||||||
|
Permissions []string `json:"permissions"`
|
||||||
|
|
||||||
|
// User 用户信息
|
||||||
|
User dborm.User `json:"user"`
|
||||||
|
|
||||||
|
Session dborm.Session `json:"-"`
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ type TreeSelect struct {
|
|||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
|
|
||||||
// Label 节点名称
|
// Label 节点名称
|
||||||
Label string `json:"label"`
|
Label string `json:"title"`
|
||||||
|
|
||||||
// Children 子节点
|
// Children 子节点
|
||||||
Children []TreeSelect `json:"children"`
|
Children []TreeSelect `json:"children"`
|
||||||
|
|||||||
Reference in New Issue
Block a user