structs

package
v0.5.33 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Zlib Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInfo

type ActionInfo struct {
	Scene Scene `json:"scene"`
}

type Articles

type Articles struct {
	Articles []News `json:"articles"`
}

type ArticlesResult

type ArticlesResult struct {
	Items []NewsResult `json:"news_item"`
	FileName
}

type BatchReq

type BatchReq struct {
	OpenIdList []string `json:"begin_openid,omitempty"`
}

type BlackReq

type BlackReq struct {
	OpenId string `json:"begin_openid,omitempty"`
}

type FileName

type FileName struct {
	Raw  []byte // 其他类型的素材消息,则响应的直接为素材的内容,开发者可以自行保存为文件
	File string
}

type Industry

type Industry struct {
	FirstClass  string `json:"first_class"`
	SecondClass string `json:"second_class"`
}

所属行业

type IndustryReq

type IndustryReq struct {
	Id1 string `json:"industry_id1"`
	Id2 string `json:"industry_id2"`
}

所属行业设置

type IndustryS

type IndustryS struct {
	Primary   Industry `json:"primary_industry"`
	Secondary Industry `json:"secondary_industry"`
}

type MediaId

type MediaId struct {
	Type      string `json:"type"`
	MediaId   string `json:"media_id"`
	CreatedAt int32  `json:"created_at"`
}

type News

type News struct {
	Title              string `json:"title"`
	ThumbMediaId       string `json:"thumb_media_id"`
	Author             string `json:"author"`
	Digest             string `json:"digest"`
	ShowCoverPic       int8   `json:"show_cover_pic"`
	Content            string `json:"content"`
	ContentSourceUrl   string `json:"content_source_url"`
	NeedOpenComment    int8   `json:"need_open_comment"`
	OnlyFansCanComment int8   `json:"only_fans_can_comment"`
}

type NewsResult

type NewsResult struct {
	Title              string `json:"title"`
	ThumbMediaId       string `json:"thumb_media_id"`
	Author             string `json:"author"`
	Digest             string `json:"digest"`
	ShowCoverPic       int8   `json:"show_cover_pic"`
	Content            string `json:"content"`
	Url                string `json:"url"`
	Description        string `json:"description"`
	DownUrl            string `json:"down_url"`
	ContentSourceUrl   string `json:"content_source_url"`
	NeedOpenComment    int8   `json:"need_open_comment"`
	OnlyFansCanComment int8   `json:"only_fans_can_comment"`
}

type OpenId

type OpenId struct {
	OpenId []string `json:"openid"`
}

type QRCode

type QRCode struct {
	Ticket string `json:"ticket"`
	Expire int64  `json:"expire_seconds"`
	Url    string `json:"url"`
}

type QRCodeReq

type QRCodeReq struct {
	Expire     int64      `json:"expire_seconds,omitempty"`
	ActionName string     `json:"action_name"`
	ActionInfo ActionInfo `json:"action_info"`
}

二维码

type QrcBuffer

type QrcBuffer struct {
	Type string `json:"contentType"`
	Buff []byte `json:"buffer"`
}

type Scene

type Scene struct {
	SceneId  int32  `json:"scene_id,omitempty"`  //场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)
	SceneStr string `json:"scene_str,omitempty"` //场景值ID(字符串形式的ID),字符串类型,长度限制为1到64
}

type ShortUrlReq

type ShortUrlReq struct {
	Action string `json:"action"` //=long2short
	Url    string `json:"long_url"`
}

长链接转短链接

type TMInfo

type TMInfo struct {
	Id              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 Ticket

type Ticket struct {
	Ticket   string `json:"ticket"`
	ExpireIn int64  `json:"expires_in"`
}

type UserOpenIdList

type UserOpenIdList struct {
	Total      int32  `json:"total"`
	Count      int32  `json:"count"`
	Data       OpenId `json:"data"`
	NextOpenId string `json:"next_openid"`
}

Jump to

Keyboard shortcuts

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