Versions in this module Expand all Collapse all v0 v0.1.1 Aug 25, 2023 v0.1.0 Jul 9, 2023 Changes in this version + type Category struct + ID string + Name string + type Keyword struct + Example string + Name string + Rule string + Tid string + type KeywordEnumValue struct + EnumValueList []string + KeywordCode string + type Message struct + Data map[string]*DataValue + Lang string + MiniProgramState string + Path string + TemplateId string + ToUser string + type PrivateTemplate struct + Content string + Example string + KeywordEnumValueList []KeywordEnumValue + PrivateTemplateID string + Title string + Type int + type PublicTemplate struct + CategoryId string + Tid string + Title string + Type int type TemplateMessage + func (m *TemplateMessage) AddTemplate(tid string, kidList []int, sceneDesc string) (string, error) + func (m *TemplateMessage) DeleteTemplate(privateTemplateId string) error + func (m *TemplateMessage) GetCategory() ([]Category, error) + func (m *TemplateMessage) GetKeywords(tid string) ([]Keyword, error) + func (m *TemplateMessage) GetPublicTemplates(ids string, start, limit int) ([]PublicTemplate, error) + func (m *TemplateMessage) GetTemplateList() ([]PrivateTemplate, error) v0.0.9 Jul 9, 2023 Changes in this version + type Body struct + Data map[string]*DataValue + Lang string + MiniProgramState string + Path string + TemplateId string + ToUser string + type DataValue struct + Value string + type TemplateMessage struct + func New(account contracts.AccountInterface) *TemplateMessage + func (m *TemplateMessage) Send(message Body) error