xybot/group/response.go
2025-04-17 14:59:55 +08:00

189 lines
7.1 KiB
Go

package group
import "gitee.ltd/lxh/xybot/base"
// AddChatroomMemberResponse
// @description: 添加群聊成员返回值
type AddChatroomMemberResponse struct {
BaseResponse struct {
ErrMsg base.SKBuiltinStringT `json:"errMsg"`
Ret int `json:"ret"`
} `json:"baseResponse"`
MemberCount int `json:"MemberCount"`
MemberList []struct {
City string `json:"City"`
ContactType int `json:"ContactType"`
Country string `json:"Country"`
MemberName base.SKBuiltinStringT `json:"MemberName"`
MemberStatus int `json:"MemberStatus"`
NickName base.SKBuiltinStringT `json:"NickName"`
PYInitial base.SKBuiltinStringT `json:"PYInitial"`
PersonalCard int `json:"PersonalCard"`
Province string `json:"Province"`
QuanPin base.SKBuiltinStringT `json:"QuanPin"`
Remark base.SKBuiltinStringT `json:"Remark"`
RemarkPyinitial base.SKBuiltinStringT `json:"RemarkPyinitial"`
RemarkQuanPin base.SKBuiltinStringT `json:"RemarkQuanPin"`
Sex int `json:"Sex"`
Signature string `json:"Signature"`
VerifyFlag int `json:"VerifyFlag"`
VerifyInfo string `json:"VerifyInfo"`
} `json:"MemberList"`
}
// GetChatroomInfoResponse
// @description: 获取群聊详情返回值
type GetChatroomInfoResponse struct {
Announcement string `json:"Announcement"` // 公告内容
AnnouncementEditor string `json:"AnnouncementEditor"` // 公告编辑者
AnnouncementPublishTime int `json:"AnnouncementPublishTime"`
BaseResponse struct {
ErrMsg base.SKBuiltinStringT `json:"errMsg"`
Ret int `json:"ret"`
} `json:"BaseResponse"`
ChatRoomBusinessType int `json:"ChatRoomBusinessType"`
ChatRoomInfoVersion int `json:"ChatRoomInfoVersion"`
ChatRoomStatus int `json:"ChatRoomStatus"`
RoomTools struct {
RoomToolsWxAppCount int `json:"RoomToolsWxAppCount"`
RoomToolsWxApps []struct {
CustomInfo []int `json:"CustomInfo"`
Path string `json:"Path"`
Tcreator string `json:"Tcreator"`
Time int `json:"Time"`
Title string `json:"Title"`
TodoId string `json:"TodoId"`
UserName string `json:"UserName"`
Manager string `json:"manager"`
RelatedMsgId int `json:"relatedMsgId"`
} `json:"RoomToolsWxApps"`
} `json:"RoomTools"`
}
// GetChatroomInfoNoAnnounce
// @description: 群聊详情(不包含群公告)
type GetChatroomInfoNoAnnounce struct {
BaseResponse struct {
Ret int `json:"ret"`
ErrMsg struct {
} `json:"errMsg"`
} `json:"BaseResponse"`
ContactCount int `json:"ContactCount"`
ContactList []ChatroomInfoItem `json:"ContactList"` // 群详情列表
Ret []int `json:"Ret"`
Ticket []struct {
} `json:"Ticket"`
}
// ChatroomInfoItem
// @description: 群详情
type ChatroomInfoItem struct {
UserName base.SKBuiltinStringT `json:"UserName"`
NickName base.SKBuiltinStringT `json:"NickName"`
Pyinitial base.SKBuiltinStringT `json:"Pyinitial"`
QuanPin base.SKBuiltinStringT `json:"QuanPin"`
Sex int `json:"Sex"`
ImgBuf struct {
ILen int `json:"iLen"`
} `json:"ImgBuf"`
BitMask int64 `json:"BitMask"`
BitVal int `json:"BitVal"`
ImgFlag int `json:"ImgFlag"`
Remark any `json:"Remark"`
RemarkPyinitial any `json:"RemarkPyinitial"`
RemarkQuanPin any `json:"RemarkQuanPin"`
ContactType int `json:"ContactType"`
RoomInfoCount int `json:"RoomInfoCount"`
DomainList any `json:"DomainList"`
ChatRoomNotify int `json:"ChatRoomNotify"`
AddContactScene int `json:"AddContactScene"`
PersonalCard int `json:"PersonalCard"`
HasWeiXinHdHeadImg int `json:"HasWeiXinHdHeadImg"`
VerifyFlag int `json:"VerifyFlag"`
Level int `json:"Level"`
Source int `json:"Source"`
ChatRoomOwner string `json:"ChatRoomOwner"`
WeiboFlag int `json:"WeiboFlag"`
AlbumStyle int `json:"AlbumStyle"`
AlbumFlag int `json:"AlbumFlag"`
SnsUserInfo struct {
SnsFlag int `json:"SnsFlag"`
SnsBgobjectId int `json:"SnsBgobjectId"`
SnsFlagEx int `json:"SnsFlagEx"`
} `json:"SnsUserInfo"`
SmallHeadImgUrl string `json:"SmallHeadImgUrl"` // 头像
CustomizedInfo struct {
BrandFlag int `json:"BrandFlag"`
} `json:"CustomizedInfo"`
EncryptUserName string `json:"EncryptUserName"`
AdditionalContactList struct {
LinkedinContactItem struct {
} `json:"LinkedinContactItem"`
} `json:"AdditionalContactList"`
ChatroomVersion int `json:"ChatroomVersion"`
ChatroomMaxCount int `json:"ChatroomMaxCount"`
ChatroomAccessType int `json:"ChatroomAccessType"`
NewChatroomData struct {
MemberCount int `json:"MemberCount"` // 成员总数
ChatRoomMember []struct {
UserName string `json:"UserName"`
NickName string `json:"NickName"`
ChatroomMemberFlag int `json:"ChatroomMemberFlag"`
InviterUserName string `json:"InviterUserName"`
} `json:"ChatRoomMember"` // 群成员列表
InfoMask int `json:"InfoMask"`
} `json:"NewChatroomData"`
DeleteFlag int `json:"DeleteFlag"`
PhoneNumListInfo struct {
Count int `json:"Count"`
} `json:"PhoneNumListInfo"`
ChatroomInfoVersion int `json:"ChatroomInfoVersion"`
DeleteContactScene int `json:"DeleteContactScene"`
ChatroomStatus int `json:"ChatroomStatus"`
ExtFlag int `json:"ExtFlag"`
}
// GetChatroomMemberDetailResponse
// @description: 获取群成员详情返回值
type GetChatroomMemberDetailResponse struct {
BaseResponse struct {
Ret int `json:"ret"`
ErrMsg struct {
} `json:"errMsg"`
} `json:"BaseResponse"`
ChatroomUserName string `json:"ChatroomUserName"`
ServerVersion int `json:"ServerVersion"`
NewChatroomData struct {
MemberCount int `json:"MemberCount"`
ChatRoomMember []ChatRoomMemberItem `json:"ChatRoomMember"`
InfoMask int `json:"InfoMask"`
} `json:"NewChatroomData"`
}
// ChatRoomMemberItem
// @description: 获取群成员详情返回值 - 群成员信息
type ChatRoomMemberItem struct {
UserName string `json:"UserName"`
NickName string `json:"NickName"`
DisplayName string `json:"DisplayName,omitempty"`
BigHeadImgUrl string `json:"BigHeadImgUrl"`
SmallHeadImgUrl string `json:"SmallHeadImgUrl"`
ChatroomMemberFlag int `json:"ChatroomMemberFlag"`
InviterUserName string `json:"InviterUserName"`
}
// GetChatroomQRCodeResponse
// @description: 获取群二维码返回值
type GetChatroomQRCodeResponse struct {
BaseResponse struct {
Ret int `json:"ret"`
ErrMsg struct {
} `json:"errMsg"`
} `json:"BaseResponse"`
Qrcode struct {
ILen int `json:"iLen"`
Buffer string `json:"buffer"` // 二维码图片数据 base64字符串
} `json:"qrcode"`
RevokeQrcodeWording string `json:"revokeQrcodeWording"` // 有效期提示
}