ai_scheduler/internal/pkg/wx/qs_contacts.go

302 lines
8.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package wx
// ==================== 联系人接口 ====================
type FetchContactsListReq struct {
// 设备ID
AppId string `json:"appId"`
}
type FetchContactsListResData struct {
// 好友的wxid
Friends []string `json:"friends"`
// 保存到通讯录中群聊的ID
Chatrooms []string `json:"chatrooms"`
// 关注的公众号ID
Ghs []string `json:"ghs"`
}
type FetchContactsListCacheReq struct {
// 设备ID
AppId string `json:"appId"`
}
// FetchContactsListCacheResData 响应仅 ret/msg,无 data 字段
type FetchContactsListCacheResData struct{}
type GetBriefInfoReq struct {
// 设备ID
AppId string `json:"appId"`
// 好友的wxid(最大20个)
Wxids []string `json:"wxids"`
}
// GetBriefInfoResData data为数组,本结构体为数组元素类型
type GetBriefInfoResData struct {
UserName string `json:"userName"`
NickName string `json:"nickName"`
PyInitial string `json:"pyInitial"`
QuanPin string `json:"quanPin"`
Sex int `json:"sex"`
Remark string `json:"remark"`
RemarkPyInitial string `json:"remarkPyInitial"`
RemarkQuanPin string `json:"remarkQuanPin"`
Signature string `json:"signature"`
Alias string `json:"alias"`
SnsBgImg string `json:"snsBgImg"`
Country string `json:"country"`
BigHeadImgUrl string `json:"bigHeadImgUrl"`
SmallHeadImgUrl string `json:"smallHeadImgUrl"`
Description string `json:"description"`
CardImgUrl string `json:"cardImgUrl"`
LabelList string `json:"labelList"`
Province string `json:"province"`
City string `json:"city"`
PhoneNumList interface{} `json:"phoneNumList"`
}
type GetDetailInfoReq struct {
// 设备ID
AppId string `json:"appId"`
// 好友的wxid(最大20个)
Wxids []string `json:"wxids"`
}
// GetDetailInfoResData data为数组,本结构体为数组元素类型
type GetDetailInfoResData struct {
// 好友的wxid
UserName string `json:"userName"`
// 好友的昵称
NickName string `json:"nickName"`
// 好友昵称的拼音首字母
PyInitial string `json:"pyInitial"`
// 好友昵称的全拼
QuanPin string `json:"quanPin"`
// 好友的性别
Sex int `json:"sex"`
// 好友备注
Remark string `json:"remark"`
// 好友备注的拼音首字母
RemarkPyInitial string `json:"remarkPyInitial"`
// 好友备注的全拼
RemarkQuanPin string `json:"remarkQuanPin"`
// 好友的签名
Signature string `json:"signature"`
// 好友的微信号
Alias string `json:"alias"`
// 朋友圈背景图链接
SnsBgImg string `json:"snsBgImg"`
// 国家
Country string `json:"country"`
// 大尺寸头像链接
BigHeadImgUrl string `json:"bigHeadImgUrl"`
// 小尺寸头像链接
SmallHeadImgUrl string `json:"smallHeadImgUrl"`
// 好友的描述
Description string `json:"description"`
// 好友描述的图片链接
CardImgUrl string `json:"cardImgUrl"`
// 好友的标签ID
LabelList string `json:"labelList"`
// 省份
Province string `json:"province"`
// 城市
City string `json:"city"`
// 好友的手机号码(上游有时返回数组有时返回字符串)
PhoneNumList interface{} `json:"phoneNumList"`
}
type ContactsSearchReq struct {
// 设备ID
AppId string `json:"appId"`
// 搜索的联系人信息,微信号、手机号...
ContactsInfo string `json:"contactsInfo"`
}
type ContactsSearchResData struct {
// 搜索好友的v3,添加好友时使用
V3 string `json:"v3"`
// 搜索好友的昵称
NickName string `json:"nickName"`
// 搜索好友的性别
Sex int `json:"sex"`
// 搜索好友的签名
Signature string `json:"signature"`
// 搜索好友的大尺寸头像
BigHeadImgUrl string `json:"bigHeadImgUrl"`
// 搜索好友的小尺寸头像
SmallHeadImgUrl string `json:"smallHeadImgUrl"`
// 搜索好友的v4,添加好友时使用
V4 string `json:"v4"`
}
type AddContactsReq struct {
// 设备ID
AppId string `json:"appId"`
// 添加来源:3=微信号搜索, 4=QQ好友, 8=来自群聊, 15=手机号
Scene int `json:"scene"`
// 操作类型:2=添加好友, 3=同意好友, 4=拒绝好友
Option int `json:"option"`
// 通过搜索或回调消息获取到的v3
V3 string `json:"v3"`
// 通过搜索或回调消息获取到的v4
V4 string `json:"v4"`
// 添加好友时的招呼语
Content string `json:"content"`
}
// AddContactsResData 响应仅 ret/msg,无 data 字段
type AddContactsResData struct{}
type DeleteFriendReq struct {
// 设备ID
AppId string `json:"appId"`
// 删除好友的wxid
Wxid string `json:"wxid"`
}
// DeleteFriendResData 响应仅 ret/msg,无 data 字段
type DeleteFriendResData struct{}
type SetFriendPermissionsReq struct {
// 设备ID
AppId string `json:"appId"`
// 好友的wxid
Wxid string `json:"wxid"`
// 设置好友是否仅聊天
OnlyChat bool `json:"onlyChat"`
}
// SetFriendPermissionsResData 响应仅 ret/msg,无 data 字段
type SetFriendPermissionsResData struct{}
type SetFriendRemarkReq struct {
// 设备ID
AppId string `json:"appId"`
// 好友的wxid
Wxid string `json:"wxid"`
// 备注
Remark string `json:"remark"`
}
// SetFriendRemarkResData 响应仅 ret/msg,无 data 字段
type SetFriendRemarkResData struct{}
type GetPhoneAddressListReq struct {
// 设备ID
AppId string `json:"appId"`
// 获取哪些手机号的好友详情,不传获取所有
Phones []string `json:"phones"`
}
// GetPhoneAddressListResData data为数组,本结构体为数组元素类型
type GetPhoneAddressListResData struct {
UserName string `json:"userName"`
V4 string `json:"v4"`
NickName string `json:"nickName"`
Sex int `json:"sex"`
PhoneMd5 string `json:"phoneMd5"`
Signature string `json:"signature"`
Alias string `json:"alias"`
Country string `json:"country"`
BigHeadImgUrl string `json:"bigHeadImgUrl"`
SmallHeadImgUrl string `json:"smallHeadImgUrl"`
Province string `json:"province"`
City string `json:"city"`
PersonalCard int `json:"personalCard"`
}
type UploadPhoneAddressListReq struct {
// 设备ID
AppId string `json:"appId"`
// 需要上传的手机号
Phones []string `json:"phones"`
// 操作类型:1=上传, 2=删除
OpType int `json:"opType"`
}
// UploadPhoneAddressListResData 响应仅 ret/msg,无 data 字段
type UploadPhoneAddressListResData struct{}
type ImSearchReq struct {
// 设备ID
AppId string `json:"appId"`
// 搜索类型:1=企微二维码
Scene int `json:"scene"`
// 企微二维码信息
Content string `json:"content"`
}
type ImSearchResData struct {
NickName string `json:"nickName"`
Sex int `json:"sex"`
Signature string `json:"signature"`
BigHeadImgUrl string `json:"bigHeadImgUrl"`
SmallHeadImgUrl string `json:"smallHeadImgUrl"`
V3 string `json:"v3"`
V4 string `json:"v4"`
}
type ImAddReq struct {
// 设备ID
AppId string `json:"appId"`
V3 string `json:"v3"`
V4 string `json:"v4"`
}
// ImAddResData 响应仅 ret/msg,无 data 字段
type ImAddResData struct{}
type ImSyncReq struct {
// 设备ID
AppId string `json:"appId"`
}
// ImSyncResData data为数组,本结构体为数组元素类型
type ImSyncResData struct {
// 企微号
UserName string `json:"userName"`
// 昵称
NickName string `json:"nickName"`
// 备注
Remark string `json:"remark"`
// 大头像
BigHeadImg string `json:"bigHeadImg"`
// 小头像
SmallHeadImg string `json:"smallHeadImg"`
// appid
AppId string `json:"appId"`
// 所在企业id
DescWordingId string `json:"descWordingId"`
}
type ImDetailReq struct {
// 设备ID
AppId string `json:"appId"`
// 企微用户ID
ToUserName string `json:"toUserName"`
}
type ImDetailResData struct {
// 企微号
UserName string `json:"userName"`
// 昵称
NickName string `json:"nickName"`
// 备注
Remark string `json:"remark"`
// 头像地址
BigHeadImg string `json:"bigHeadImg"`
// 头像地址小
SmallHeadImg string `json:"smallHeadImg"`
// appid
AppId string `json:"appId"`
// 企业id
DescWordingId string `json:"descWordingId"`
// 企业名称
Wording string `json:"wording"`
// 企业名称拼音
WordingPinyin string `json:"wordingPinyin"`
// 企业名称全拼
WordingQuanpin string `json:"wordingQuanpin"`
}