common

package
v0.0.0-...-ed8de99 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardEntity

type CardEntity struct {
	CardId string `json:"card_id"`
}

type Comment

type Comment struct {
	UserCommentId int          `json:"user_comment_id"`
	OpenId        string       `json:"openid"`
	CreateTime    int          `json:"create_time"`
	Content       string       `json:"content"`
	CommentType   int          `json:"comment_type"`
	Reply         CommentReply `json:"reply"`
}

评论

type CommentReply

type CommentReply struct {
	Content    string `json:"content"`
	CreateTime int    `json:"create_time"`
}

作者回复

type Material

type Material struct {
	Title        string   `json:"title"`
	Introduction string   `json:"introduction"`
	MediaId      string   `json:"media_id"`
	Url          string   `json:"url"`
	Media        *os.File `json:"-"`
	Type         string   `json:"type"`
	CreateAt     int      `json:"created_at"`
	NewsItem     []News   `json:"news_item"`
	Name         string   `json:"name"`
	UpdateTime   int      `json:"update_time"`
}

素材

type MediaEntity

type MediaEntity struct {
	Title        string
	Description  string `json:"description"`
	MediaId      string `json:"media_id"`
	ThumbMediaId string `json:"thumb_media_id"`
	Content      string `json:"content"`
	MusicUrl     string `json:"musicurl"`
	HqMusicUrl   string `json:"hqmusicurl"`
	Url          string `json:"url"`
	PicUrl       string `json:"picurl"`
}

消息媒体

func (MediaEntity) ToXml

func (me MediaEntity) ToXml(removeWrapper ...bool) string

type MiniProgramEntity

type MiniProgramEntity struct {
	Title        string `json:"title"`
	AppId        string `json:"appid"`
	PagePath     string `json:"pagepath"`
	ThumbMediaId string `json:"thumb_media_id"`
}

type News

type News struct {
	Title              string `json:"title"`
	ThumbMediaId       string `json:"thumb_media_id"`
	Author             string `json:"author"`
	Digest             string `json:"digest"`
	ShowCoverPic       int    `json:"show_cover_pic"`
	Content            string `json:"content"`
	ContentSourceUrl   string `json:"content_source_url"`    //图文消息的原文地址,即点击“阅读原文”后的UR
	NeedOpenComment    int    `json:"need_open_comment"`     //是否打开评论,0不打开,1打开
	OnlyFansCanComment int    `json:"only_fans_can_comment"` //是否粉丝才可评论,0所有人可评论,1粉丝才可评论
}

图文素材

Jump to

Keyboard shortcuts

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