es

package
v0.0.0-...-115e584 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0, GPL-3.0, GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateTopicIndex

func UpdateTopicIndex(topic *model.Topic)

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 SearchTopic(keyword string, page, limit int) (docs []TopicDocument, paging *simple.Paging, err error)

func (*TopicDocument) ToStr

func (t *TopicDocument) ToStr() string

Jump to

Keyboard shortcuts

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