api

package
v0.0.0-...-bbaa137 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Topic

type Topic struct {
	Id              string `json:"id" comment:"主题ID"`
	Member          string `json:"member_name" comment:"会员名"`
	MemberAvatar    string `json:"member_avatar" comment:"会员头像"`
	Title           string `json:"title" comment:"标题"`
	Node            string `json:"node" comment:"节点"`
	NodeAlias       string `json:"node_alias" comment:"节点名称"`
	LastReplyMember string `json:"last_reply_member" comment:"最后回复会员名"`
	LastReplyTime   string `json:"last_reply_time" comment:"最后回复时间"`
	ReplyCount      string `json:"reply_count" comment:"回复总数"`
}

func TabTopicList

func TabTopicList(url urls.ApiUrl) (topics []Topic, err error)

type TopicInfo

type TopicInfo struct {
	Node struct {
		AvatarLarge      string        `json:"avatar_large"`
		Name             string        `json:"name"`
		AvatarNormal     string        `json:"avatar_normal"`
		Title            string        `json:"title"`
		URL              string        `json:"url"`
		Topics           int           `json:"topics"`
		Footer           string        `json:"footer"`
		Header           string        `json:"header"`
		TitleAlternative string        `json:"title_alternative"`
		AvatarMini       string        `json:"avatar_mini"`
		Stars            int           `json:"stars"`
		Aliases          []interface{} `json:"aliases"`
		Root             bool          `json:"root"`
		ID               int           `json:"id"`
		ParentNodeName   string        `json:"parent_node_name"`
	} `json:"node"`
	Member struct {
		Username     string `json:"username"`
		Website      string `json:"website"`
		Github       string `json:"github"`
		Psn          string `json:"psn"`
		AvatarNormal string `json:"avatar_normal"`
		Bio          string `json:"bio"`
		URL          string `json:"url"`
		Tagline      string `json:"tagline"`
		Twitter      string `json:"twitter"`
		Created      int    `json:"created"`
		AvatarLarge  string `json:"avatar_large"`
		AvatarMini   string `json:"avatar_mini"`
		Location     string `json:"location"`
		Btc          string `json:"btc"`
		ID           int    `json:"id"`
	} `json:"member"`
	LastReplyBy     string `json:"last_reply_by"`
	LastTouched     int    `json:"last_touched"`
	Title           string `json:"title"`
	URL             string `json:"url"`
	Created         int    `json:"created"`
	Content         string `json:"content"`
	ContentRendered string `json:"content_rendered"`
	LastModified    int    `json:"last_modified"`
	Replies         int    `json:"replies"`
	ID              int    `json:"id"`
}

func GetTopicInfo

func GetTopicInfo(id string) (topicInfo TopicInfo, err error)

Jump to

Keyboard shortcuts

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