Documentation ¶
Index ¶
- type AutoReplySetting
- type IndustryResult
- type IndustryType
- type MiniProgram
- type Once
- type Template
- func (t *Template) DeleteTemplate(templateID string) error
- func (t *Template) GetAutoReplyRule() (*AutoReplySetting, error)
- func (t *Template) GetIndustry() (*IndustryResult, error)
- func (t *Template) GetTemplateByShortId(shortId string) (string, error)
- func (t *Template) GetTemplates() (*TemplateResult, error)
- func (t *Template) Send(tempMsg *TemplateMsg) (msgId int, err error)
- func (t *Template) SetIndustry(industry *IndustryType) error
- type TemplateItem
- type TemplateMsg
- type TemplateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoReplySetting ¶
type AutoReplySetting struct { request.CommonError AddFriendReplyOpen int `json:"is_add_friend_reply_open"` AutoReplyOpen int `json:"is_autoreply_open"` AddFriendAutoReplyInfo autoReplyInfo `json:"add_friend_autoreply_info"` MessageDefaultAutoReplyInfo autoReplyInfo `json:"message_default_autoreply_info"` KeywordAutoReplyInfo struct { List []struct { RuleName string `json:"rule_name"` CreateTime int `json:"create_time"` ReplyMode string `json:"reply_mode"` KeywordListInfo []autoReplyKeyword `json:"keyword_list_info"` ReplyListInfo []autoReplyNews `json:"reply_list_info"` } `json:"list"` } `json:"keyword_autoreply_info"` }
type IndustryResult ¶
type IndustryResult struct { Primary industryClass `json:"primary_industry"` Secondary industryClass `json:"secondary_industry"` }
type IndustryType ¶
IT科技 互联网/电子商务 1 IT科技 IT软件与服务 2 IT科技 IT硬件与设备 3 IT科技 电子技术 4 IT科技 通信与运营商 5 IT科技 网络游戏 6 金融业 银行 7 金融业 基金理财信托 8 金融业 保险 9 餐饮 餐饮 10 酒店旅游 酒店 11 酒店旅游 旅游 12 运输与仓储 快递 13 运输与仓储 物流 14 运输与仓储 仓储 15 教育 培训 16 教育 院校 17 政府与公共事业 学术科研 18 政府与公共事业 交警 19 政府与公共事业 博物馆 20 政府与公共事业 公共事业非盈利机构 21 医药护理 医药医疗 22 医药护理 护理美容 23 医药护理 保健与卫生 24 交通工具 汽车相关 25 交通工具 摩托车相关 26 交通工具 火车相关 27 交通工具 飞机相关 28 房地产 建筑 29 房地产 物业 30 消费品 消费品 31 商业服务 法律 32 商业服务 会展 33 商业服务 中介服务 34 商业服务 认证 35 商业服务 审计 36 文体娱乐 传媒 37 文体娱乐 体育 38 文体娱乐 娱乐休闲 39 印刷 印刷 40 其它 其它 41 /
type MiniProgram ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func (*Template) DeleteTemplate ¶
func (*Template) GetAutoReplyRule ¶
func (t *Template) GetAutoReplyRule() (*AutoReplySetting, error)
func (*Template) GetIndustry ¶
func (t *Template) GetIndustry() (*IndustryResult, error)
func (*Template) GetTemplateByShortId ¶
func (*Template) GetTemplates ¶
func (t *Template) GetTemplates() (*TemplateResult, error)
func (*Template) Send ¶
func (t *Template) Send(tempMsg *TemplateMsg) (msgId int, err error)
for more details information, read below https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#0 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Operation_Specifications.html xml event will come after
func (*Template) SetIndustry ¶
func (t *Template) SetIndustry(industry *IndustryType) error
type TemplateItem ¶
type TemplateMsg ¶
type TemplateMsg struct { ToUser string `json:"touser"` //openID TemplateID string `json:"template_id"` URL string `json:"url"` Program *MiniProgram `json:"miniprogram,omitempty"` Data interface{} `json:"data"` }
type TemplateResult ¶
type TemplateResult struct { request.CommonError List []TemplateItem `json:"template_list"` }