search

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReplyOrderMap map
	ReplyOrderMap = map[string]string{
		"ctime": "ctime",
		"like":  "like",
		"count": "count",
	}
)

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao is search dao.

func New

func New(c *conf.Config) (d *Dao)

New new a search dao.

func (*Dao) ArchivesES

func (d *Dao) ArchivesES(c context.Context, mid int64, tid int16, keyword, order, class, ip string, pn, ps, coop int) (sres *search.Result, err error)

ArchivesES search archives by es.

func (*Dao) ArchivesStaffES

func (d *Dao) ArchivesStaffES(c context.Context, mid int64, tid int16, keyword, state string, pn, ps int) (sres *search.StaffApplyResult, err error)

ArchivesStaffES search staff applies by es.

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping ping success.

func (*Dao) ReplyES

func (d *Dao) ReplyES(c context.Context, p *search.ReplyParam) (sres *search.Replies, err error)

ReplyES fn order: ctime/like/count filter: 1/2/3

Jump to

Keyboard shortcuts

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