Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateTopicIndex ¶
Types ¶
type TopicDocument ¶
type TopicDocument struct { Id int64 `json:"id"` NodeId int64 `json:"nodeId"` UserId int64 `json:"userId"` Title string `json:"title"` Content string `json:"content"` Recommend bool `json:"recommend"` LastCommentTime int64 `json:"lastCommentTime"` Status int `json:"status"` ViewCount int64 `json:"viewCount"` CommentCount int64 `json:"commentCount"` LikeCount int64 `json:"likeCount"` CreateTime int64 `json:"createTime"` }
func NewTopicDoc ¶
func NewTopicDoc(topic *model.Topic) *TopicDocument
func SearchTopic ¶
func (*TopicDocument) ToStr ¶
func (t *TopicDocument) ToStr() string
Click to show internal directories.
Click to hide internal directories.