1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
package wecom
// RequestBody represents the payload sent to the WeCom webhook API.
type RequestBody struct {
MsgType string `json:"msgtype"`
Text TextContent `json:"text"`
}
// TextContent holds the text message content for WeCom.
type TextContent struct {
Content string `json:"content"`
MentionedList []string `json:"mentioned_list,omitempty"`
MentionedMobileList []string `json:"mentioned_mobile_list,omitempty"`
}
// Response represents the API response from WeCom.
type Response struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}
|