Documentation ¶
Index ¶
- func Send(api *token.Api, req template2.Template) error
- func SendBuff(mini bool, api *token.Api, buf []byte) error
- type Base
- type Subscribe
- func (b *Subscribe) GetAppId() string
- func (b *Subscribe) GetToUser() string
- func (b *Subscribe) IsMini() bool
- func (b *Subscribe) SetAppId(appid string)
- func (b *Subscribe) SetFormId(formid string)
- func (b *Subscribe) SetId(id string)
- func (b *Subscribe) SetToUser(user string)
- func (b *Subscribe) SetUrl(url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { AppId string `json:"-"` ToUser string `json:"touser"` Id string `json:"template_id"` Page string `json:"page"` //点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转。 FormId string `json:"form_id"` //表单提交场景下,为 submit 事件带上的 formId;支付场景下,为本次支付的 prepay_id EmphasisKeyword string `json:"emphasis_keyword,omitempty"` //模板需要放大的关键词,不填则默认无放大 }
模板消息
Click to show internal directories.
Click to hide internal directories.