push.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package model
  2. type NotifyMsg struct {
  3. Openid string //用户id
  4. Remark string //消息内容,其他属性待加
  5. Result string //
  6. Detail string //
  7. Title string
  8. Url string
  9. Date string
  10. Service string
  11. Color string
  12. DetailColor string
  13. TplId string
  14. }
  15. type RpcResult string
  16. //红包
  17. type BonusMsg struct {
  18. Mchbillno string `json:"mch_billno"` //订单号
  19. Sendname string `json:"send_name"` //红包发送者名称
  20. Reopenid string `json:"re_openid"` //接受人openid
  21. Totalamount int `json:"total_amount"` //金额,单位分
  22. Totalnum int `json:"total_num"` //发放总人数
  23. Wishing string `json:"wishing"` //祝福语128字以内
  24. Actname string `json:"act_name"` //活动名称
  25. Remark string `json:"remark"` //说明
  26. }
  27. type Article struct {
  28. Title string `json:"title"`
  29. Description string `json:"description"`
  30. PicUrl string `json:"picurl"`
  31. Url string `json:"url"`
  32. }
  33. type News struct {
  34. ToUser string //用户id
  35. Articles []Article
  36. }
  37. type CustomMsg struct {
  38. Url string
  39. Data map[string]interface{}
  40. }
  41. type TmplItem struct {
  42. Value string `json:"value,omitempty"`
  43. Color string `json:"color,omitempty"`
  44. }
  45. type WxTmplMsg struct {
  46. OpenId string //用户id
  47. Url string
  48. TplId string
  49. TmplData map[string]*TmplItem
  50. }