notify.go 823 B

123456789101112131415161718192021
  1. package response
  2. type TextNotify struct { // 文字信息
  3. Content string `json:"content"` // 发送的内容
  4. AtMobiles []string `json:"atMobiles"` // 需要艾特的人的手机号
  5. IsAtAll bool `json:"isAtAll"` // 是否艾特全体
  6. }
  7. type LinkNotify struct { // 图文链接信息
  8. Content string `json:"content"` // 发送的内容
  9. Title string `json:"title"` // 内容标题
  10. PicUrl string `json:"picUrl"` // 配图
  11. MessageUrl string `json:"messageUrl"` // 点击跳转路径
  12. }
  13. type MarkdownNotify struct { // markdown信息
  14. Title string `json:"title"` // 内容标题
  15. Content string `json:"content"` // 发送的内容
  16. AtMobiles []string `json:"atMobiles"` // 需要艾特的人的手机号
  17. IsAtAll bool `json:"isAtAll"` // 是否艾特全体
  18. }