Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OwnedTopic ¶ added in v0.23.0
type OwnedTopic struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Body string `json:"body"`
Author TopicAuthor `json:"author"`
Tickers []string `json:"tickers"`
Images []TopicImage `json:"images"`
LikesCount string `json:"likes_count"`
CommentsCount string `json:"comments_count"`
ViewsCount string `json:"views_count"`
TopicType string `json:"topic_type"`
DetailURL string `json:"detail_url"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
OwnedTopic is a topic created by the authenticated user, returned by topic detail or list-mine.
type TopicAuthor ¶ added in v0.23.0
type TopicAuthor struct {
MemberID string `json:"member_id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
}
TopicAuthor is the author of a topic or reply.
type TopicDetailResponse ¶ added in v0.23.0
type TopicDetailResponse struct {
Item OwnedTopic `json:"item"`
}
TopicDetailResponse wraps a single OwnedTopic from the detail endpoint.
type TopicImage ¶ added in v0.23.0
TopicImage is an image attached to a topic or reply.
type TopicRepliesResponse ¶ added in v0.23.0
type TopicRepliesResponse struct {
Items []*TopicReply `json:"items"`
}
TopicRepliesResponse wraps a list of replies.
type TopicReply ¶ added in v0.23.0
type TopicReply struct {
ID string `json:"id"`
TopicID string `json:"topic_id"`
Body string `json:"body"`
ReplyToID string `json:"reply_to_id"`
Author TopicAuthor `json:"author"`
Images []TopicImage `json:"images"`
LikesCount string `json:"likes_count"`
CommentsCount string `json:"comments_count"`
CreatedAt string `json:"created_at"`
}
TopicReply is a reply on a topic.
type TopicReplyResponse ¶ added in v0.23.0
type TopicReplyResponse struct {
Item TopicReply `json:"item"`
}
TopicReplyResponse wraps a single reply (create response).
Click to show internal directories.
Click to hide internal directories.