750 lines
18 KiB
Go
750 lines
18 KiB
Go
package req
|
||
|
||
import (
|
||
"xiawan/wx/clientsdk/baseinfo"
|
||
)
|
||
|
||
type MessageItem struct {
|
||
ToUserName string // 接收者 wxid
|
||
TextContent string // 文本类型消息时内容
|
||
ImageContent string // 图片类型消息时图片的 base64 编码
|
||
MsgType int //1 Text 2 Image
|
||
AtWxIDList []string // 发送艾特消息时的 wxid 列表
|
||
}
|
||
|
||
type SendMessageModel struct {
|
||
MsgItem []MessageItem // 消息体数组
|
||
}
|
||
|
||
// SnsLocationInfo 朋友圈地址项
|
||
type SnsLocationInfoModel struct {
|
||
City string
|
||
Longitude string
|
||
Latitude string
|
||
PoiName string
|
||
PoiAddress string
|
||
PoiScale int32
|
||
PoiInfoURL string
|
||
PoiClassifyID string
|
||
PoiClassifyType uint32
|
||
PoiClickableStatus uint32
|
||
}
|
||
|
||
// SnsMediaItem 朋友圈媒体项
|
||
type SnsMediaItemModel struct {
|
||
ID uint32
|
||
Type uint32
|
||
Title string
|
||
Description string
|
||
Private uint32
|
||
UserData string
|
||
SubType uint32
|
||
URL string
|
||
URLType string
|
||
Thumb string
|
||
ThumType string
|
||
SizeWidth string
|
||
SizeHeight string
|
||
TotalSize string
|
||
VideoWidth string
|
||
VideoHeight string
|
||
MD5 string
|
||
VideoMD5 string
|
||
VideoDuration float64
|
||
}
|
||
|
||
type DownloadMediaModel struct {
|
||
Key string
|
||
URL string
|
||
}
|
||
type TransmitFriendCircleModel struct {
|
||
SourceID string
|
||
}
|
||
|
||
// 设置朋友圈可见天数
|
||
type SetFriendCircleDaysModel struct {
|
||
Function uint32
|
||
Value uint32
|
||
}
|
||
|
||
// SnsPostItem 发送朋友圈需要的信息
|
||
type SnsPostItemModel struct {
|
||
ContentStyle uint32 // 纯文字/图文/引用/视频
|
||
ContentUrl string
|
||
Description string
|
||
Privacy uint32 // 是否仅自己可见
|
||
Content string // 文本内容
|
||
MediaList []*SnsMediaItemModel // 图片/视频列表
|
||
WithUserList []string // 提醒好友看列表
|
||
GroupUserList []string // 可见好友列表
|
||
BlackList []string // 不可见好友列表
|
||
LocationInfo *SnsLocationInfoModel // 发送朋友圈的位置信息
|
||
}
|
||
|
||
type GetSnsInfoModel struct {
|
||
UserName string
|
||
FirstPageMD5 string
|
||
MaxID uint64
|
||
}
|
||
type GetIdDetailModel struct {
|
||
Id string
|
||
BlackList []string
|
||
LocationVal int64
|
||
Location baseinfo.Location
|
||
}
|
||
type SetBackgroundImageModel struct {
|
||
Url string
|
||
}
|
||
type SendFavItemCircle struct {
|
||
SourceID string
|
||
FavItemID uint32
|
||
BlackList []string
|
||
LocationVal int64
|
||
Location baseinfo.Location
|
||
}
|
||
|
||
// UploadFriendCircleModel 上传朋友圈图片视频信息
|
||
type UploadFriendCircleModel struct {
|
||
ImageDataList []string
|
||
VideoDataList []string
|
||
}
|
||
|
||
type ForwardImageItem struct {
|
||
ToUserName string
|
||
AesKey string
|
||
CdnMidImgUrl string
|
||
CdnMidImgSize int32
|
||
CdnThumbImgSize int32
|
||
}
|
||
|
||
type ForwardVideoItem struct {
|
||
ToUserName string
|
||
AesKey string
|
||
CdnVideoUrl string
|
||
Length int
|
||
PlayLength int
|
||
CdnThumbLength int
|
||
}
|
||
|
||
type ForwardMessageModel struct {
|
||
ForwardImageList []ForwardImageItem
|
||
ForwardVideoList []ForwardVideoItem
|
||
}
|
||
|
||
type SendEmojiItem struct {
|
||
ToUserName string
|
||
EmojiMd5 string
|
||
EmojiSize int32
|
||
}
|
||
type SendEmojiMessageModel struct {
|
||
EmojiList []SendEmojiItem
|
||
}
|
||
|
||
type RevokeMsgModel struct {
|
||
NewMsgId string
|
||
ClientMsgId uint64
|
||
CreateTime uint64
|
||
ToUserName string
|
||
IsImage bool // 标识是否为图片消息
|
||
ClientImgIdStr string // 保存clientImgId的原始字符串值
|
||
}
|
||
|
||
type AppMessageItem struct {
|
||
ToUserName string
|
||
ContentXML string
|
||
ContentType uint32 // 2001:(红包消息)
|
||
}
|
||
|
||
type AppMessageModel struct {
|
||
AppList []AppMessageItem
|
||
}
|
||
|
||
type UpdateChatroomAnnouncementModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
Content string
|
||
}
|
||
|
||
type GetChatroomMemberDetailModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
}
|
||
|
||
type ConsentToJoinGroupModel struct {
|
||
Url string
|
||
}
|
||
|
||
type ChatRoomWxIdListModel struct {
|
||
ChatRoomWxIdList []string
|
||
}
|
||
type SetChatroomAccessVerifyModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
Enable bool
|
||
}
|
||
type ChatroomMemberModel struct {
|
||
UserList []string
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
}
|
||
type ChatroomNameModel struct {
|
||
Nickname string
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
}
|
||
type SendPatModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
ToUserName string
|
||
Scene int64
|
||
}
|
||
type GroupListModel struct {
|
||
Key string
|
||
}
|
||
type SearchContactModel struct {
|
||
Tg string
|
||
FromScene uint64
|
||
UserName string
|
||
}
|
||
type QWApplyAddContactModel struct {
|
||
UserName string
|
||
V1 string
|
||
Content string
|
||
}
|
||
type QWSyncChatRoomModel struct {
|
||
Key string
|
||
}
|
||
type QWChatRoomTransferOwnerModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
ToUserName string
|
||
}
|
||
type QWAddChatRoomMemberModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
ToUserName []string
|
||
}
|
||
type QWAcceptChatRoomModel struct {
|
||
Link string
|
||
Opcode uint32
|
||
}
|
||
type QWAdminAcceptJoinChatRoomSetModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
P int64
|
||
}
|
||
type QWModChatRoomNameModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
Name string
|
||
}
|
||
type MoveContractModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
Val uint32
|
||
}
|
||
type CreateChatRoomModel struct {
|
||
TopIc string
|
||
UserList []string
|
||
}
|
||
|
||
type TransferGroupOwnerModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
NewOwnerUserName string
|
||
}
|
||
|
||
type InviteChatroomMembersModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
UserList []string
|
||
}
|
||
|
||
type ScanIntoUrlGroupModel struct {
|
||
Url string
|
||
}
|
||
|
||
type SnsObjectOpItem struct {
|
||
SnsObjID string // 朋友圈ID
|
||
OpType uint32 // 操作码
|
||
DataLen uint32 // 其它数据长度
|
||
Data []byte // 其它数据
|
||
Ext uint32
|
||
}
|
||
|
||
type SendSnsObjectOpRequestModel struct {
|
||
SnsObjectOpList []SnsObjectOpItem
|
||
}
|
||
|
||
// ReplyCommentItem 回覆的评论项
|
||
type ReplyCommentItem struct {
|
||
UserName string // 评论的微信ID
|
||
NickName string // 发表评论的昵称
|
||
OpType uint32 // 操作类型:评论/点赞
|
||
Source uint32 // source
|
||
}
|
||
|
||
// SnsCommentItem 朋友圈项:发表评论/点赞
|
||
type SnsCommentItem struct {
|
||
OpType uint32 // 操作类型:评论/点赞
|
||
ItemID string // 朋友圈项ID
|
||
ToUserName string // 好友微信ID
|
||
Content string // 评论内容
|
||
CreateTime uint32 // 创建时间
|
||
ReplyCommentID uint32 // 回复的评论ID
|
||
ReplyItem ReplyCommentItem // 回覆的评论项
|
||
}
|
||
|
||
type SendSnsCommentRequestModel struct {
|
||
SnsCommentList []SnsCommentItem
|
||
Tx bool
|
||
}
|
||
|
||
type SnsObjectOpRequestModel struct {
|
||
SnsObjectOpList []SnsObjectOpItem
|
||
}
|
||
|
||
type DeviceIdLoginModel struct {
|
||
Proxy string // socks代理,例如:socks5://username:password@ipv4:port
|
||
LoginData string // 62 数据/A16 数据
|
||
UserName string // 手机号
|
||
Password string // 微信密码
|
||
Ticket string // SMS短信验证码
|
||
Type int
|
||
DeviceInfo DeviceInfo // 设备信息
|
||
}
|
||
type DeviceInfo struct {
|
||
Model string
|
||
AndroidId string
|
||
Manufacturer string
|
||
ImeI string
|
||
}
|
||
type DelSafeDeviceModel struct {
|
||
DeviceUUID string
|
||
}
|
||
|
||
type ExtDeviceLoginModel struct {
|
||
QrConnect string
|
||
}
|
||
|
||
type GetA8KeyRequestModel struct {
|
||
OpCode uint32
|
||
Scene uint32
|
||
ReqUrl string
|
||
}
|
||
|
||
type AppletModel struct {
|
||
AppId string // 应用ID
|
||
Opt int32 `example:"1"` // 小程序云函数操作的 Opt; 默认为1
|
||
Data string // 小程序云函数操作的 Data; json字符串, 注意必须是 json 字符串; 传空时默认值为: '{"with_credentials":true,"from_component":true,"data":{"lang":"zh_CN"},"api_name":"webapi_getuserinfo"}'
|
||
SdkName string
|
||
PackageName string
|
||
}
|
||
|
||
type VerifyUserItem struct {
|
||
Gh string
|
||
Scene int
|
||
}
|
||
|
||
// 获取通讯录好友
|
||
type GetContactListModel struct {
|
||
CurrentWxcontactSeq uint32
|
||
CurrentChatRoomContactSeq uint32
|
||
}
|
||
|
||
type FollowGHModel struct {
|
||
GHList []VerifyUserItem
|
||
}
|
||
|
||
type GetLoginQrCodeModel struct {
|
||
IpadOrmac string
|
||
Proxy string // socks代理,例如:socks5://username:password@ipv4:port
|
||
Check bool `example:"false"` // 修改代理时(SetProxy接口) 是否发送检测代理请求(可能导致请求超时)
|
||
}
|
||
|
||
type PhoneLoginModel struct {
|
||
Url string
|
||
}
|
||
|
||
type UploadMContactModel struct {
|
||
MobileList []string
|
||
Mobile string
|
||
Opcode int32
|
||
}
|
||
|
||
type QRConnectAuthorizeModel struct {
|
||
QrUrl string
|
||
}
|
||
type GetMpA8KeyModel struct {
|
||
Url string
|
||
Opcode uint32
|
||
Scene int64
|
||
}
|
||
|
||
// 历史消息
|
||
type GetMpHistoryMsgModel struct {
|
||
Url string
|
||
}
|
||
|
||
type GetQrCodeModel struct {
|
||
Style uint32 `example:"8"` // 个人二维码样式: 可设置为8, 其余自行探索
|
||
Recover bool // 保持默认值, 无需修改
|
||
}
|
||
|
||
type PeopleNearbyModel struct {
|
||
Longitude float32
|
||
Latitude float32
|
||
}
|
||
|
||
type ModifyCmdStatusModel struct {
|
||
Key string `example:"101"`
|
||
Value int `example:"1"`
|
||
ValueStr string `example:""`
|
||
Params1 string `example:"自定义参数1"`
|
||
Params2 string `example:"自定义参数2"`
|
||
Params3 string `example:"自定义参数3"`
|
||
Params4 string `example:"自定义参数4"`
|
||
}
|
||
|
||
type ModifyCmdStatusModelNew struct {
|
||
Key string `example:"101"`
|
||
Value int `example:"1"`
|
||
ValueStr string `example:""`
|
||
}
|
||
|
||
// ChannelsLoginModel 视频号助手扫码登录请求模型
|
||
type ChannelsLoginModel struct {
|
||
Url string `json:"url" binding:"required"` // 视频号助手扫码登录确认链接
|
||
FinderUsername string `json:"finderUsername"` // 指定要登录的视频号用户名,为空则选择第一个
|
||
}
|
||
|
||
// ShopLoginConfirmModel 微信小店确认登录请求模型
|
||
type ShopLoginConfirmModel struct {
|
||
Url string `json:"url" binding:"required"` // 登录二维码URL
|
||
}
|
||
|
||
type CollectmoneyModel struct {
|
||
InvalidTime string
|
||
TransFerId string
|
||
TransactionId string
|
||
ToUserName string
|
||
}
|
||
type OpenRedEnvelopesModel struct {
|
||
NativeUrl string
|
||
}
|
||
type FavInfoModel struct {
|
||
FavId uint32
|
||
KeyBuf string
|
||
}
|
||
|
||
type LabelModel struct {
|
||
UserLabelList []baseinfo.UserLabelInfoItem
|
||
// del labelId
|
||
LabelId string
|
||
LabelNameList []string
|
||
}
|
||
|
||
type GetSyncMsgModel struct {
|
||
Key string
|
||
}
|
||
type DelContactModel struct {
|
||
DelUserName string
|
||
}
|
||
|
||
type ModifyUserInfo struct {
|
||
City string
|
||
Country string
|
||
NickName string
|
||
Province string
|
||
Signature string
|
||
Sex uint32
|
||
InitFlag uint32
|
||
}
|
||
type UpdateNickNameModel struct {
|
||
Scene uint32
|
||
Val string
|
||
}
|
||
type UpdateSexModel struct {
|
||
Sex uint32
|
||
City string
|
||
Province string
|
||
Country string
|
||
}
|
||
type UploadHeadImageModel struct {
|
||
Base64 string
|
||
}
|
||
|
||
type SendChangePwdRequestModel struct {
|
||
OldPass string `json:"oldPass"` // 确保json标签是`oldPass`
|
||
NewPass string `json:"newPass"`
|
||
OpCode uint32 `json:"opCode"`
|
||
}
|
||
type SendModifyRemarkRequestModel struct {
|
||
UserName string
|
||
RemarkName string
|
||
}
|
||
|
||
// 设置微信号
|
||
type AlisaModel struct {
|
||
Alisa string
|
||
}
|
||
|
||
type UpdateAutopassModel struct {
|
||
SwitchType uint32
|
||
}
|
||
|
||
// 设置添加方式
|
||
type WxFunctionSwitchModel struct {
|
||
Function uint32
|
||
Value uint32
|
||
}
|
||
type SetSendPatModel struct {
|
||
Value string
|
||
}
|
||
|
||
// 修改步数
|
||
type UpdateStepNumberModel struct {
|
||
Number uint64
|
||
}
|
||
|
||
type UserRankLikeModel struct {
|
||
RankId string
|
||
}
|
||
|
||
// BatchGetContact
|
||
type BatchGetContactModel struct {
|
||
UserNames []string
|
||
RoomWxIDList []string
|
||
}
|
||
type SearchContactRequestModel struct {
|
||
OpCode uint32 // 操作类型
|
||
UserName string // 要搜索的内容(微信号、手机号、QQ号等)
|
||
FromScene uint32
|
||
SearchScene uint32 // 搜索场景
|
||
}
|
||
|
||
type GetFriendRelationModel struct {
|
||
UserName string
|
||
}
|
||
type SendUploadVoiceRequestModel struct {
|
||
ToUserName string
|
||
VoiceData string `json:"VoiceData"`
|
||
VoiceSecond, VoiceFormat int32
|
||
}
|
||
|
||
type CdnUploadVideoRequest struct {
|
||
ToUserName string
|
||
VideoData []byte // 视频数据
|
||
ThumbData []byte // ThumbData
|
||
}
|
||
|
||
type DownloadParam struct {
|
||
MsgId uint32 // 消息ID(注意是msg_id 不是new_msg_id)
|
||
TotalLen int // 下载数据的总长度
|
||
Section DataSection // 当前要获取的数据分包
|
||
ToUserName string // 下载图片时,图片消息的接收者
|
||
FromUserName string // 下载图片时,图片消息的发送者
|
||
CompressType int // 下载图片时,数据压缩类型(默认为0即可)
|
||
}
|
||
|
||
type DataSection struct {
|
||
StartPos uint32 // 数据分包开始位置
|
||
DataLen uint32 `example:"61440"` // 数据分包长度(不要超过 65535)
|
||
}
|
||
|
||
type GroupMassMsgTextModel struct {
|
||
ToUserName []string
|
||
Content string
|
||
}
|
||
type GroupMassMsgImageModel struct {
|
||
ToUserName []string
|
||
ImageBase64 string
|
||
}
|
||
|
||
type DownloadVoiceModel struct {
|
||
ToUserName string
|
||
NewMsgId string
|
||
Bufid string
|
||
Length int
|
||
}
|
||
type DownMediaModel struct {
|
||
AesKey string
|
||
FileURL string
|
||
FileType uint32
|
||
}
|
||
|
||
// VerifyUserRequestModel 添加好友/验证好友/打招呼 请求体
|
||
type VerifyUserRequestModel struct {
|
||
OpCode uint32 `example:"2"` // 操作类型: 1(免验证发送请求) 2(添加好友/发送验证申请) 3(同意好友/通过好友验证) 4(拒绝好友)
|
||
VerifyContent string // 添加好友时的(招呼语/验证信息)
|
||
Scene int `example:"3"` // 添加来源, 同意添加好友时传回调消息xml中的scene值.<br/>添加好友时的枚举值如下: <br/>1(QQ) 2(邮箱) 3(微信号) 4(QQ好友) 8(来自群聊) 13(通讯录)<br/>14(群聊) 15(手机号) 18(附近的人) 25(漂流瓶) 29(摇一摇) 30(二维码)
|
||
V3 string // V3用户名数据(SearchContact请求返回的UserValue)
|
||
V4 string // V4校验数据(SearchContact请求返回的AntispamTicket)
|
||
ChatRoomUserName string // 通过群来添加好友 需要设置此值为群id
|
||
}
|
||
|
||
type GeneratePayQCodeModel struct {
|
||
Name string // 收款备注
|
||
Money string // 金额(单位为分), 999 即为 9.99 元
|
||
}
|
||
|
||
type QWContactModel struct {
|
||
ToUserName string
|
||
ChatRoom string
|
||
T string
|
||
}
|
||
|
||
type QWRemarkModel struct {
|
||
ToUserName string
|
||
Name string
|
||
}
|
||
type QWCreateModel struct {
|
||
ToUserName []string
|
||
}
|
||
type FinderSearchModel struct {
|
||
Index uint32
|
||
Userver int32
|
||
UserKey string
|
||
Uuid string
|
||
}
|
||
|
||
type FinderUserPrepareModel struct {
|
||
Userver int32
|
||
}
|
||
|
||
type FinderFollowModel struct {
|
||
FinderUserName string
|
||
PosterUsername string
|
||
OpType int32
|
||
RefObjectId string
|
||
Cook string
|
||
Userver int32
|
||
}
|
||
|
||
type WxBindOpMobileForModel struct {
|
||
OpCode int64
|
||
PhoneNumber string
|
||
VerifyCode string
|
||
Reg uint64
|
||
Proxy string
|
||
}
|
||
|
||
type GenAuthKeyModel struct {
|
||
Count int `example:"1"` // 要生成 AuthKey 的个数; Count小于1默认设置为1
|
||
Days int `example:"30"` // AuthKey 的过期天数; Days小于1默认设置为30
|
||
}
|
||
|
||
type GenAuthKeyTypeModel struct {
|
||
Count int `example:"1"` // 要生成 AuthKey 的个数; Count小于1默认设置为1
|
||
Type int `example:"1"` // 类型 1日 7 周 30月 90季 180 半年 365年 30000永久(数字为标识,非准确天数)
|
||
}
|
||
|
||
type SyncMessageModel struct {
|
||
Count int // 同步几条消息; 接收空请求体, 默认为0, 同步所有消息
|
||
}
|
||
|
||
type GetChatroomQrCodeModel struct {
|
||
ChatRoomName string // 群聊ID:xxx@chatroom
|
||
}
|
||
|
||
type DelayAuthKeyModel struct {
|
||
Key string // 要延期的 AuthKey
|
||
Days int `example:"30"` // AuthKey 的延期天数; Days 小于1默认设置为30
|
||
ExpiryDate string // AuthKey 的到期日期(例如: 2024-01-01); 与 Days 参数只能选其一(优先使用 ExpiryDate 参数)
|
||
}
|
||
|
||
type DelayAuthKeyModelNew struct {
|
||
KeyUse string // 被使用的key
|
||
}
|
||
|
||
type BannedAuthKeyModel struct {
|
||
Key string // 要禁用的 AuthKey
|
||
IsBanned int `example:"0"` // isBanned 1 禁用 默认设置为0
|
||
}
|
||
|
||
type DeleteAuthKeyModel struct {
|
||
Key string // 要删除的 AuthKey
|
||
Opt int // 删除操作 0:仅删除授权码 1:删除授权码相关的所有数据
|
||
}
|
||
|
||
type CreatePreTransfer struct {
|
||
ToUserName string // 要转账用户的wxid
|
||
Fee uint32 // 转账金额(单位为分)
|
||
Description string // 转账备注
|
||
}
|
||
|
||
type ConfirmPreTransfer struct {
|
||
BankType string // 付款方式 类型
|
||
BankSerial string // 付款方式 Serial序列号
|
||
ReqKey string // 创建转账返回的ReqKey
|
||
PayPassword string // 支付密码
|
||
}
|
||
|
||
type ShareCardParam struct {
|
||
ToUserName string // 消息接收者
|
||
CardWxId string // 名片wxid
|
||
CardNickName string // 名片昵称
|
||
CardAlias string // 名片别名(发送公众号名片时留空)
|
||
CardFlag int // 名片CertFlag(0:个人名片 24:公众号名片)
|
||
}
|
||
|
||
type MessageNoShowParam struct {
|
||
ToUserName string // 消息接收者
|
||
}
|
||
|
||
// CdnSnsVideoUploadModel CDN朋友圈视频上传请求模型
|
||
type CdnSnsVideoUploadModel struct {
|
||
VideoData string // 视频数据的base64编码
|
||
ThumbData string // 缩略图数据的base64编码
|
||
}
|
||
|
||
type ResponseResult struct {
|
||
Code int64
|
||
Success bool
|
||
Message string
|
||
Data interface{}
|
||
Data62 string
|
||
Debug string
|
||
}
|
||
|
||
type ResponseResult2 struct {
|
||
Code int64
|
||
Success bool
|
||
Message string
|
||
Data interface{}
|
||
Data62 string
|
||
DeviceId string
|
||
}
|
||
|
||
type SessionidQRParam struct {
|
||
Code int64
|
||
Success bool
|
||
Message string
|
||
Data interface{}
|
||
Data62 string
|
||
DeviceId string
|
||
}
|
||
|
||
// 用于公众号文章阅读和点赞功能的请求参数
|
||
type ReadParam struct {
|
||
Url string // 公众号文章URL
|
||
}
|
||
|
||
// VerifyCodeModel 验证码验证请求模型
|
||
type VerifyCodeModel struct {
|
||
Code string `json:"code" binding:"required"` // 验证码
|
||
Data62 string `json:"data62" binding:"required"` // 验证码
|
||
Ticket string `json:"ticket" binding:"required"` // 验证码
|
||
}
|
||
|
||
// SlideTicketModel 滑动验证码请求模型
|
||
type SlideTicketModel struct {
|
||
Data62 string `json:"data62" binding:"required"` // 验证码
|
||
Ticket string `json:"ticket" binding:"required"` // 验证码
|
||
RandStr string `json:"randstr" bingding:"required"`
|
||
SlideTicket string `json:"slideticket" binding:"required"`
|
||
}
|
||
|
||
// DownloadEmojiModel 下载表情gif请求模型
|
||
type DownloadEmojiModel struct {
|
||
XmlContent string `json:"xml_content" binding:"required"` // msg_type=47的消息xml内容
|
||
}
|
||
|
||
// DownloadQWImageModel 企微图片下载请求模型
|
||
// 企微图片下载
|
||
type DownloadQWImageModel struct {
|
||
Xml string `json:"xml" binding:"required"`
|
||
}
|
||
|
||
// UploadImageToCDNModel 纯CDN图片上传请求模型
|
||
type UploadImageToCDNModel struct {
|
||
ImageContent string `json:"imageContent" binding:"required"` // 图片的base64编码
|
||
}
|