message

package
v0.0.0-...-5175aa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

type IndustryType struct {
	ID1 string `json:"industry_id1"`
	ID2 string `json:"industry_id2"`
}

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 MiniProgram struct {
	AppID    string `json:"appid"`
	PagePath string `json:"pagepath"`
}

type Once

type Once struct {
	// contains filtered or unexported fields
}

type Template

type Template struct {
	// contains filtered or unexported fields
}

func New

func New(r *request.Request) *Template

func (*Template) DeleteTemplate

func (t *Template) DeleteTemplate(templateID string) error

func (*Template) GetAutoReplyRule

func (t *Template) GetAutoReplyRule() (*AutoReplySetting, error)

func (*Template) GetIndustry

func (t *Template) GetIndustry() (*IndustryResult, error)

func (*Template) GetTemplateByShortId

func (t *Template) GetTemplateByShortId(shortId string) (string, error)

func (*Template) GetTemplates

func (t *Template) GetTemplates() (*TemplateResult, error)

func (*Template) SetIndustry

func (t *Template) SetIndustry(industry *IndustryType) error

type TemplateItem

type TemplateItem struct {
	TemplateID      string `json:"template_id"`
	Title           string `json:"title"`
	PrimaryIndustry string `json:"primary_industry"`
	DeputyIndustry  string `json:"deputy_industry"`
	Content         string `json:"content"`
	Example         string `json:"example"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL