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"` }