feat: wecom message init

This commit is contained in:
zzw
2026-09-17 10:18:43 +08:00
parent 5a56eb2fe4
commit dd460f6be2
46 changed files with 2735 additions and 109 deletions
+28
View File
@@ -0,0 +1,28 @@
package message
type SendRequest struct {
ToUser string `json:"touser,omitempty"`
ToParty string `json:"toparty,omitempty"`
ToTag string `json:"totag,omitempty"`
MsgType string `json:"msgtype"`
AgentId int `json:"agentid"`
TaskId string `json:"task_id"`
TemplateCard interface{} `json:"template_card,omitempty"`
EnableIdTrans int `json:"enable_id_trans,omitempty"`
EnableDuplicateCheck int `json:"enable_duplicate_check,omitempty"`
DuplicateCheckInterval int `json:"duplicate_check_interval,omitempty"`
}
type UpdateCardRequest struct {
AgentId int64 `json:"agentid"`
Atall uint8 `json:"atall"`
ResponseCode string `json:"response_code"`
Button *UpdateButton `json:"button"`
}
type UpdateButton struct {
ReplaceName string `json:"replace_name"`
}