zhangzengfei
2023-09-04 e8e536d1cb52d2126c8c7ce2ba1c7a76f7208678
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package vo
 
import "vamicro/system-service/models"
 
type UserVo struct {
    UserName string `json:"username"`
    Password string `json:"password"`
    Nickname string `json:"nickname"`
    HeadPic  string `json:"headpic"`
    RoleId   string `json:"roleId"`
}
 
type LoginAppUser struct {
    models.SysUser
    SysRoles []models.SysRole `json:"sysRoles"`//用户角色
    Permissions []string  `json:"permissions"`
    SysOrgs []string `json:"sysOrgs"`//用户组织信息
    SysMenus []SysMenuVo `json:"sysMenus"`//用户菜单
    RoleName string `json:"roleName"`//角色名称
    HeadPic string `json:"headpic"`//头像
    BackgroundPic string `json:"backgroundpic"`//desktop bg picture
    // IconType int  `json:"iconType"`
}
 
type UserAuthVo struct {
    models.SysUser
    Menus []SysMenuVo `json:"menus"`
}
 
type UserEditVo struct {
    Id string `json:"id"`
    UserName string `json:"username"`
    NewPwd string `json:"newPwd"`
    MenuIds []string `json:"menuIds"`
    Nickname string `json:"nickname"`
    HeadPic  string `json:"headpic"`
    BackgroundPic  string `json:"backgroundpic"`
    IconType int  `json:"iconType"`
}