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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 account dao.

func (*Dao) PgcIdx

func (d *Dao) PgcIdx(c context.Context, req *seaMdl.ReqPgcIdx) (data *seaMdl.EsPgcResult, err error)

PgcIdx treats the pgc index request and call the ES to get the result

func (*Dao) PgcSearch

func (d *Dao) PgcSearch(c context.Context, arg *mdlSearch.UserSearch) (st *mdlSearch.TypeSearch, err error)

PgcSearch .

func (*Dao) SearchAll

func (d *Dao) SearchAll(ctx context.Context, req *searchMdl.ReqSearch) (result searchMdl.RespAll, common *searchMdl.ResultResponse, err error)

SearchAll gets the search all_tv result

func (*Dao) SearchAllWild

func (d *Dao) SearchAllWild(ctx context.Context, arg *mdlSearch.UserSearch) (user *mdlSearch.Search, err error)

SearchAllWild wild search all .

func (*Dao) SearchPgc

func (d *Dao) SearchPgc(ctx context.Context, req *searchMdl.ReqSearch) (result searchMdl.RespPgc, common *searchMdl.ResultResponse, err error)

SearchPgc gets the search tv_pgc result

func (*Dao) SearchSug

func (d *Dao) SearchSug(ctx context.Context, req *searchMdl.ReqSug) (result searchMdl.SugResponse, err error)

SearchSug gets the search sug detail data from Search API

func (*Dao) SearchUgc

func (d *Dao) SearchUgc(ctx context.Context, req *searchMdl.ReqSearch) (result searchMdl.RespUgc, common *searchMdl.ResultResponse, err error)

SearchUgc gets the search tv_ugc result

func (*Dao) UgcIdx

func (d *Dao) UgcIdx(c context.Context, req *seaMdl.SrvUgcIdx) (data *seaMdl.EsUgcResult, err error)

UgcIdx treats the ugc index request and call the ES to get the result

func (*Dao) UserSearch

func (d *Dao) UserSearch(ctx context.Context, arg *mdlSearch.UserSearch) (user []*mdlSearch.User, err error)

UserSearch search user .

Jump to

Keyboard shortcuts

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