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