29 lines
826 B
Go
29 lines
826 B
Go
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"`
|
|
}
|