You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
954 B
34 lines
954 B
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"` |
|
}
|
|
|