2019-04-22 02:59:20 +00:00

35 lines
954 B
Go

package model
//MsgSendReq message send request of wechat
type MsgSendReq struct {
ChatID string `json:"chatid" form:"chatid"`
MsgType string `json:"msgtype" form:"msgtype"`
Text MsgSendReqText `json:"text" form:"test"`
Safe int `json:"safe" form:"safe"`
}
// MsgSendPersonReq send msg to person request model
type MsgSendPersonReq struct {
Users []string `json:"touser"`
Content string `json:"content"`
}
//MsgSendReqText MegSendReq test
type MsgSendReqText struct {
Content string `json:"content"`
}
//MsgSendRes message send response
type MsgSendRes struct {
Code int `json:"code"`
Message string `json:"message"`
TTL int `json:"ttl"`
Data WechatMegSendResData `json:"data"`
}
//WechatMegSendResData message send response data of wechat
type WechatMegSendResData struct {
Errcode int `json:"errcode"`
Errmsg string `json:"errmsg"`
}