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.
|
|
|
|
package commonus
|
|
|
|
|
|
|
|
|
|
//文本消息
|
|
|
|
|
type SendPublic struct {
|
|
|
|
|
Touser string `json:"touser" form:"touser"`
|
|
|
|
|
ToParty string `json:"toparty" form:"toparty"`
|
|
|
|
|
ToTag string `json:"totag" form:"totag"`
|
|
|
|
|
MsgType string `json:"msgtype" form:"msgtype"`
|
|
|
|
|
AgentId int64 `json:"agentid" form:"agentid"`
|
|
|
|
|
EnableDuplicateCheck int `json:"enable_duplicate_check" form:"enable_duplicate_check"`
|
|
|
|
|
DuplicateCheckInterval int `json:"duplicate_check_interval" form:"duplicate_check_interval"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SendText struct {
|
|
|
|
|
SendPublic
|
|
|
|
|
Safe int `json:"safe" form:"safe"`
|
|
|
|
|
EnableIdTrans int `json:"enable_id_trans" form:"enable_id_trans"`
|
|
|
|
|
Text SendTextStruct `json:"text" form:"text"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SendTextStruct struct {
|
|
|
|
|
Content string `json:"content" form:"content"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//markdown消息
|
|
|
|
|
type SendMarkDown struct {
|
|
|
|
|
SendPublic
|
|
|
|
|
Text SendTextStruct `json:"markdown" form:"markdown"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//发送图文西悉尼
|
|
|
|
|
type SendImgCont struct {
|
|
|
|
|
SendPublic
|
|
|
|
|
EnableIdTrans int `json:"enable_id_trans" form:"enable_id_trans"`
|
|
|
|
|
News SendNewsStruct `json:"news" form:"news"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//图文具体内容
|
|
|
|
|
type SendNewsStruct struct {
|
|
|
|
|
Articles []ArticlesStruct `json:"articles" form:"articles"`
|
|
|
|
|
}
|
|
|
|
|
type ArticlesStruct struct {
|
|
|
|
|
Title string `json:"title" form:"title"`
|
|
|
|
|
Description string `json:"description" form:"description"`
|
|
|
|
|
URL string `json:"url" form:"url"`
|
|
|
|
|
Picurl string `json:"picurl" form:"picurl"`
|
|
|
|
|
Appid string `json:"appid" form:"appid"`
|
|
|
|
|
Pagepath string `json:"pagepath" form:"pagepath"`
|
|
|
|
|
}
|