-
Notifications
You must be signed in to change notification settings - Fork 173
/
responseGetUserDetail.go
85 lines (74 loc) · 2.5 KB
/
responseGetUserDetail.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
package response
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
)
type ResponseGetUserDetail struct {
response.ResponseWork
*UserDetail
}
type ExtAttr struct {
Attrs []struct {
Type int `json:"type"`
Name string `json:"name"`
Text struct {
Value string `json:"value"`
} `json:"text,omitempty"`
Web struct {
Url string `json:"url"`
Title string `json:"title"`
} `json:"web,omitempty"`
} `json:"attrs"`
}
type WechatChannels struct {
NickName string `json:"nickname"`
Status int `json:"status"`
}
type Text struct {
Value string `json:"value"`
}
type Web struct {
URL string `json:"url"`
Title string `json:"title"`
}
type MiniProgram struct {
AppID string `json:"appid"`
PagePath string `json:"pagepath"`
Title string `json:"title"`
}
type ExternalAttr struct {
Type int `json:"type"`
Name string `json:"name"`
Text *Text `json:"text,omitempty"`
Web *Web `json:"web,omitempty"`
MiniProgram *MiniProgram `json:"miniprogram,omitempty"`
}
type ExternalProfile struct {
ExternalCorpName string `json:"external_corp_name"`
WechatChannels *WechatChannels `json:"wechat_channels"`
ExternalAttr []*ExternalAttr `json:"external_attr"`
}
type UserDetail struct {
UserID string `json:"userid"`
Name string `json:"name"`
Department []int `json:"department"`
Order []int `json:"order"`
Position string `json:"position"`
Mobile string `json:"mobile"`
Gender string `json:"gender"`
Email string `json:"email"`
BizMail string `json:"biz_mail"`
IsLeaderInDept []int `json:"is_leader_in_dept"`
DirectLeader []string `json:"direct_leader"`
Avatar string `json:"avatar"`
ThumbAvatar string `json:"thumb_avatar"`
Telephone string `json:"telephone"`
Alias string `json:"alias"`
Address string `json:"address"`
OpenUserid string `json:"open_userid"`
MainDepartment int `json:"main_department"`
ExtAttr *ExtAttr `json:"extattr"`
Status int `json:"status"`
QrCode string `json:"qr_code"`
ExternalPosition string `json:"external_position"`
ExternalProfile *ExternalProfile `json:"external_profile"`
}