-
Notifications
You must be signed in to change notification settings - Fork 10
/
api_user_models.go
126 lines (103 loc) · 3.41 KB
/
api_user_models.go
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package sdk
type BaseResp struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}
type GetDepMemberIdsResp struct {
BaseResp
UserIds []string `json:"userIds"`
}
type GetUserDetailResp struct {
BaseResp
UserList
}
type GetDepMemberListResp struct {
BaseResp
HasMore bool `json:"hasMore"`
UserList []UserList `json:"userlist"`
}
type GetAdminListResp struct {
BaseResp
AdminList []AdminList `json:"admin_list"`
}
type GetAdminScopeResp struct {
BaseResp
DeptIds []int64 `json:"dept_ids"`
}
type CanAccessMicroAppResp struct {
BaseResp
CanAccess bool `json:"canAccess"`
}
type GetUserIdByUnionIdResp struct {
BaseResp
ContactType int `json:"contactType"`
UserId string `json:"userid"`
}
type GetOrgUserCountResp struct {
BaseResp
Count int64 `json:"count"`
}
type AdminList struct {
SysLevel int `json:"sys_level"`
UserId string `json:"userid"`
}
type UserList struct {
Name string `json:"name"`
UnionId string `json:"unionid"`
UserId string `json:"userid"`
IsLeaderInDepts string `json:"isLeaderInDepts"`
IsBoos bool `json:"isBoss"`
HiredDate int64 `json:"hiredDate"`
IsSenior bool `json:"isSenior"`
Department []int64 `json:"department"`
OrderInDepts string `json:"orderInDepts"`
Active bool `json:"active"`
Avatar string `json:"avatar"`
IsAdmin bool `json:"isAdmin"`
IsHide bool `json:"isHide"`
JobNumber string `json:"jobnumber"`
Position string `json:"position"`
DingId string `json:"dingId"`
Roles []UserDetailRole `json:"roles"`
}
type UserDetailRole struct {
Id int64 `json:"id"`
Name string `json:"name"`
GroupName string `json:"groupName"`
}
type GetDeptUserListV2Resp struct {
BaseResp
Result GetDeptUserListV2RespResult `json:"result"`
}
type GetDeptUserListV2RespResult struct {
HasMore bool `json:"has_more"`
NextCursor int64 `json:"nextCursor"`
List []UserDetailInfoV2 `json:"list"`
}
type UserDetailInfoV2 struct {
UserID string `json:"userid"`
UnionID string `json:"unionid"`
Name string `json:"name"`
Avatar string `json:"avatar"`
StateCode string `json:"state_code"`
Mobile string `json:"mobile"`
HideMobile bool `json:"hide_mobile"`
Telephone string `json:"telephone"`
JobNumber string `json:"job_number"`
Title string `json:"title"`
Email string `json:"email"`
OrgEmail string `json:"org_email"`
WorkPlace string `json:"work_place"`
Remark string `json:"remark"`
DeptIdList []int64 `json:"dept_id_list"`
DeptOrder int64 `json:"dept_order"`
Extension string `json:"extension"`
HiredDate int64 `json:"hired_date"`
Active bool `json:"active"`
Admin bool `json:"admin"`
Boss bool `json:"boss"`
Leader bool `json:"leader"`
ExclusiveAccount bool `json:"exclusive_account"`
LoginId string `json:"login_id"`
ExclusiveAccountType string `json:"exclusive_account_type"`
}