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.
30 lines
981 B
30 lines
981 B
|
4 years ago
|
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"`
|
||
|
|
}
|