Documentation ¶
Index ¶
- Variables
- type MarkAllMessagesResponse
- type MarkOneMessageResponse
- type MarkedMessage
- type Message
- type MessagesResponse
- type Reply
- type ReplyForMessage
- type ReplyRecent
- type Topic
- type TopicDetail
- type TopicForMessage
- type TopicRecent
- type TopicRequestParams
- type TopicTab
- type TopicsRequestParams
- type User
- type UserDetail
- type UserEntity
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTopicTab = []TopicTab{ TopicTabAsk, TopicTabShare, TopicTabJob, TopicTabGood, }
Functions ¶
This section is empty.
Types ¶
type MarkAllMessagesResponse ¶
type MarkAllMessagesResponse struct {
MarkedMsgs []*MarkedMessage `json:"marked_msgs"`
}
type MarkOneMessageResponse ¶
type MarkOneMessageResponse struct {
MarkedMsgId string `json:"marked_msg_id"`
}
type MarkedMessage ¶
type MarkedMessage struct {
ID string `json:"id"`
}
type Message ¶
type Message struct { ID string `json:"id"` Type *string `json:"type"` HasRead *bool `json:"has_read"` CreateAt *string `json:"create_at"` Reply *ReplyForMessage `json:"reply"` Topic *TopicForMessage `json:"topic"` Author *User `json:"author"` }
type MessagesResponse ¶
type ReplyForMessage ¶
type ReplyRecent ¶
type Topic ¶
type Topic struct { ID string `json:"id"` AuthorID string `json:"author_id"` Tab *string `json:"tab"` Content *string `json:"content"` Title string `json:"title"` LastReplyAt *string `json:"last_reply_at"` Good *bool `json:"good"` Top *bool `json:"top"` ReplyCount *int `json:"reply_count"` VisitCount *int `json:"visit_count"` CreateAt *string `json:"create_at"` IsCollect *bool `json:"is_collect"` Author *User `json:"author"` }
type TopicDetail ¶
type TopicDetail struct { ID string `json:"id"` AuthorID string `json:"author_id"` Tab *string `json:"tab"` Content *string `json:"content"` Title string `json:"title"` LastReplyAt *string `json:"last_reply_at"` Good *bool `json:"good"` Top *bool `json:"top"` ReplyCount *int `json:"reply_count"` VisitCount *int `json:"visit_count"` CreateAt *string `json:"create_at"` IsCollect *bool `json:"is_collect"` Replies []*Reply `json:"replies"` Author *User `json:"author"` }
type TopicForMessage ¶
type TopicRecent ¶
type TopicRequestParams ¶
type TopicsRequestParams ¶
type UserDetail ¶
type UserDetail struct { User GithubUsername *string `json:"githubUsername"` CreateAt *string `json:"create_at"` Score *int `json:"score"` RecentReplies []*ReplyRecent `json:"recent_replies"` RecentTopics []*TopicRecent `json:"recent_topics"` }
type UserEntity ¶
Click to show internal directories.
Click to hide internal directories.