-
Notifications
You must be signed in to change notification settings - Fork 165
/
responseGroupChatGet.go
40 lines (34 loc) · 1 KB
/
responseGroupChatGet.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
package response
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
)
type Invitor struct {
UserID string `json:"userid"`
}
type Member struct {
UserID string `json:"userid"`
Type int `json:"type"`
JoinTime int `json:"join_time"`
JoinScene int `json:"join_scene"`
State string `json:"state"`
Invitor *Invitor `json:"invitor,omitempty"`
GroupNickname string `json:"group_nickname"`
Name string `json:"name"`
UnionID string `json:"unionid,omitempty"`
}
type Admin struct {
UserID string `json:"userid"`
}
type GroupChat struct {
ChatID string `json:"chat_id"`
Name string `json:"name"`
Owner string `json:"owner"`
CreateTime int `json:"create_time"`
Notice string `json:"notice"`
MemberList []*Member `json:"member_list"`
AdminList []*Admin `json:"admin_list"`
}
type ResponseGroupChatGet struct {
response.ResponseWork
GroupChat *GroupChat `json:"group_chat"`
}