12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package rpc
- type NotifyMsg struct {
- Openid string //用户id
- Remark string //消息内容,其他属性待加
- Result string //
- Detail string //
- Title string
- Url string
- Date string
- Service string
- Color string
- DetailColor string
- TplId string
- }
- type RpcResult string
- //红包
- type BonusMsg struct {
- Mchbillno string `json:"mch_billno"` //订单号
- Sendname string `json:"send_name"` //红包发送者名称
- Reopenid string `json:"re_openid"` //接受人openid
- Totalamount int `json:"total_amount"` //金额,单位分
- Totalnum int `json:"total_num"` //发放总人数
- Wishing string `json:"wishing"` //祝福语128字以内
- Actname string `json:"act_name"` //活动名称
- Remark string `json:"remark"` //说明
- }
- type Article struct {
- Title string `json:"title"`
- Description string `json:"description"`
- PicUrl string `json:"picurl"`
- Url string `json:"url"`
- }
- type News struct {
- ToUser string //用户id
- Articles []Article
- }
- type CustomMsg struct {
- Url string
- Data map[string]interface{}
- }
- type TmplItem struct {
- Value string `json:"value,omitempty"`
- Color string `json:"color,omitempty"`
- }
- type WxTmplMsg struct {
- GzhCode string //公众号代码,碎片化的公众号需要传
- OpenId string //用户id
- Url string
- TplId string
- TmplData map[string]*TmplItem
- MiniProgram *MiniProgram
- }
- type MiniProgram struct {
- AppId string `json:"appid,omitempty"`
- PagePath string `json:"pagepath,omitempty"`
- }
|