143 lines
6.2 KiB
Go
143 lines
6.2 KiB
Go
package friend
|
|
|
|
import "gitee.ltd/lxh/xybot/base"
|
|
|
|
// GetContactResponse
|
|
// @description: 通过wxid获取联系人详情返回值
|
|
type GetContactResponse struct {
|
|
BaseResponse struct {
|
|
ErrMsg base.SKBuiltinStringT `json:"errMsg"`
|
|
Ret int `json:"ret"`
|
|
} `json:"BaseResponse"`
|
|
ContactCount int `json:"ContactCount"`
|
|
ContactList []ContactListItem `json:"ContactList"`
|
|
Ret []int `json:"Ret"`
|
|
Ticket []struct {
|
|
AntispamTicket string `json:"Antispamticket"`
|
|
Username string `json:"Username"`
|
|
} `json:"Ticket"`
|
|
SendMsgTicketList [][]int `json:"sendMsgTicketList"`
|
|
}
|
|
|
|
// ContactListItem
|
|
// @description: 通过wxid获取联系人详情 - 联系人详情
|
|
type ContactListItem struct {
|
|
AddContactScene int `json:"AddContactScene"`
|
|
AdditionalContactList struct {
|
|
LinkedinContactItem struct {
|
|
LinkedinMemberId string `json:"LinkedinMemberId"`
|
|
LinkedinName string `json:"LinkedinName"`
|
|
LinkedinPublicUrl string `json:"LinkedinPublicUrl"`
|
|
} `json:"LinkedinContactItem"`
|
|
} `json:"AdditionalContactList"`
|
|
AlbumBgimgId string `json:"AlbumBgimgId"`
|
|
AlbumFlag int `json:"AlbumFlag"`
|
|
AlbumStyle int `json:"AlbumStyle"`
|
|
Alias string `json:"Alias"`
|
|
BigHeadImgUrl string `json:"BigHeadImgUrl"`
|
|
BitMask int `json:"BitMask"`
|
|
BitVal int `json:"BitVal"`
|
|
CardImgUrl string `json:"CardImgUrl"`
|
|
ChatRoomData string `json:"ChatRoomData"`
|
|
ChatRoomNotify int `json:"ChatRoomNotify"`
|
|
ChatRoomOwner string `json:"ChatRoomOwner"`
|
|
ChatroomAccessType int `json:"ChatroomAccessType"`
|
|
ChatroomInfoVersion int `json:"ChatroomInfoVersion"`
|
|
ChatroomMaxCount int `json:"ChatroomMaxCount"`
|
|
ChatroomStatus int `json:"ChatroomStatus"`
|
|
ChatroomVersion int `json:"ChatroomVersion"`
|
|
City string `json:"City"`
|
|
ContactType int `json:"ContactType"`
|
|
Country string `json:"Country"`
|
|
CustomizedInfo struct {
|
|
BrandFlag int `json:"BrandFlag"`
|
|
BrandIconURL string `json:"BrandIconURL"`
|
|
BrandInfo string `json:"BrandInfo"`
|
|
ExternalInfo string `json:"ExternalInfo"`
|
|
} `json:"CustomizedInfo"`
|
|
DeleteContactScene int `json:"DeleteContactScene"`
|
|
DeleteFlag int `json:"DeleteFlag"`
|
|
Description string `json:"Description"`
|
|
DomainList base.SKBuiltinStringT `json:"DomainList"`
|
|
EncryptUserName string `json:"EncryptUserName"`
|
|
ExtFlag int `json:"ExtFlag"`
|
|
ExtInfo string `json:"ExtInfo"`
|
|
HasWeiXinHdHeadImg int `json:"HasWeiXinHdHeadImg"`
|
|
HeadImgMd5 string `json:"HeadImgMd5"`
|
|
IdCardNum string `json:"IdcardNum"`
|
|
ImgBuf struct {
|
|
Buffer []int `json:"buffer"`
|
|
ILen int `json:"iLen"`
|
|
} `json:"ImgBuf"`
|
|
ImgFlag int `json:"ImgFlag"`
|
|
LabelIdList string `json:"LabelIdlist"`
|
|
Level int `json:"Level"`
|
|
MobileFullHash string `json:"MobileFullHash"`
|
|
MobileHash string `json:"MobileHash"`
|
|
MyBrandList string `json:"MyBrandList"`
|
|
NewChatroomData struct {
|
|
ChatRoomMember []struct {
|
|
BigHeadImgUrl string `json:"BigHeadImgUrl"`
|
|
ChatroomMemberFlag int `json:"ChatroomMemberFlag"`
|
|
DisplayName string `json:"DisplayName"`
|
|
InviterUserName string `json:"InviterUserName"`
|
|
NickName string `json:"NickName"`
|
|
SmallHeadImgUrl string `json:"SmallHeadImgUrl"`
|
|
UserName string `json:"UserName"`
|
|
} `json:"ChatRoomMember"`
|
|
InfoMask int `json:"InfoMask"`
|
|
MemberCount int `json:"MemberCount"`
|
|
} `json:"NewChatroomData"`
|
|
NickName base.SKBuiltinStringT `json:"NickName"`
|
|
PersonalCard int `json:"PersonalCard"`
|
|
PhoneNumListInfo struct {
|
|
Count int `json:"Count"`
|
|
PhoneNumList []string `json:"PhoneNumList"`
|
|
} `json:"PhoneNumListInfo"`
|
|
Province string `json:"Province"`
|
|
Pyinitial base.SKBuiltinStringT `json:"Pyinitial"`
|
|
QuanPin base.SKBuiltinStringT `json:"QuanPin"`
|
|
RealName string `json:"RealName"`
|
|
Remark base.SKBuiltinStringT `json:"Remark"`
|
|
RemarkPyinitial base.SKBuiltinStringT `json:"RemarkPyinitial"`
|
|
RemarkQuanPin base.SKBuiltinStringT `json:"RemarkQuanPin"`
|
|
RoomInfoCount int `json:"RoomInfoCount"`
|
|
RoomInfoList []struct {
|
|
NickName base.SKBuiltinStringT `json:"NickName"`
|
|
UserName base.SKBuiltinStringT `json:"UserName"`
|
|
} `json:"RoomInfoList"`
|
|
Sex int `json:"Sex"`
|
|
Signature string `json:"Signature"`
|
|
SmallHeadImgUrl string `json:"SmallHeadImgUrl"`
|
|
SnsUserInfo struct {
|
|
SnsBgImgId string `json:"SnsBgimgId"`
|
|
SnsBgObjectId int `json:"SnsBgobjectId"`
|
|
SnsFlag int `json:"SnsFlag"`
|
|
SnsFlagEx int `json:"SnsFlagEx"`
|
|
} `json:"SnsUserInfo"`
|
|
Source int `json:"Source"`
|
|
SourceExtInfo string `json:"SourceExtInfo"`
|
|
UserName base.SKBuiltinStringT `json:"UserName"`
|
|
VerifyContent string `json:"VerifyContent"`
|
|
VerifyFlag int `json:"VerifyFlag"`
|
|
VerifyInfo string `json:"VerifyInfo"`
|
|
WeiDianInfo string `json:"WeiDianInfo"`
|
|
Weibo string `json:"Weibo"`
|
|
WeiboFlag int `json:"WeiboFlag"`
|
|
WeiboNickname string `json:"WeiboNickname"`
|
|
ChatRoomBusinessType int `json:"chatRoomBusinessType"`
|
|
}
|
|
|
|
// GetContractListResponse
|
|
// @description: 获取联系人列表返回值
|
|
type GetContractListResponse struct {
|
|
BaseResponse struct {
|
|
Ret int `json:"ret"`
|
|
ErrMsg base.SKBuiltinStringT `json:"errMsg"`
|
|
} `json:"BaseResponse"`
|
|
CurrentWxcontactSeq int `json:"CurrentWxcontactSeq"`
|
|
CurrentChatRoomContactSeq int `json:"CurrentChatRoomContactSeq"`
|
|
CountinueFlag int `json:"CountinueFlag"`
|
|
ContactUsernameList []string `json:"ContactUsernameList"` // 联系人微信Id列表
|
|
}
|