1
This commit is contained in:
@@ -33,16 +33,6 @@ func (a *API) GetToken() (token string, err error) {
|
||||
return token, err
|
||||
}
|
||||
|
||||
type GroupchatListResult struct {
|
||||
Errcode int `json:"errcode"`
|
||||
Errmsg string `json:"errmsg"`
|
||||
GroupChatList []struct {
|
||||
ChatID string `json:"chat_id"`
|
||||
Status int `json:"status"`
|
||||
} `json:"group_chat_list"`
|
||||
NextCursor string `json:"next_cursor"`
|
||||
}
|
||||
|
||||
//获取客户群列表
|
||||
func (a *API) GroupchatList(cursor string, limit int) (groupchatListResult *GroupchatListResult, err error) {
|
||||
params := map[string]interface{}{
|
||||
@@ -57,30 +47,7 @@ func (a *API) GroupchatList(cursor string, limit int) (groupchatListResult *Grou
|
||||
return groupchatListResult, err
|
||||
}
|
||||
|
||||
type GroupchatResutl struct {
|
||||
Errcode int `json:"errcode"`
|
||||
Errmsg string `json:"errmsg"`
|
||||
GroupChat struct {
|
||||
ChatID string `json:"chat_id"`
|
||||
Name string `json:"name"`
|
||||
Owner string `json:"owner"`
|
||||
CreateTime int `json:"create_time"`
|
||||
MemberList []struct {
|
||||
Userid string `json:"userid"`
|
||||
Type int `json:"type"`
|
||||
JoinTime int `json:"join_time"`
|
||||
JoinScene int `json:"join_scene"`
|
||||
UnionID string `json:"unionid"`
|
||||
Invitor struct {
|
||||
Userid string `json:"userid"`
|
||||
} `json:"invitor,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
} `json:"member_list"`
|
||||
AdminList []interface{} `json:"admin_list"`
|
||||
} `json:"group_chat"`
|
||||
}
|
||||
|
||||
//获取客户群详情
|
||||
// 获取客户群详情
|
||||
func (a *API) Groupchat(chat_id string) (groupchatListResult *GroupchatResutl, err error) {
|
||||
params := map[string]interface{}{
|
||||
"chat_id": chat_id,
|
||||
|
||||
Reference in New Issue
Block a user