popular

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

Documentation

Index

Constants

View Source
const (
	//ActionAddCEventTopic log action
	ActionAddCEventTopic = "ActAddEventTopic"
	//ActionUpCEventTopic log action
	ActionUpCEventTopic = "ActUpEventTopic"
	//ActionDelCEventTopic log action
	ActionDelCEventTopic = "ActDelEventTopic"
)
View Source
const (
	//ActionAddCPopular .
	ActionAddCPopular = "ActAddPopularStars"
	//ActionUpCPopular .
	ActionUpCPopular = "ActUpPopularStars"
	//ActionDelCPopular .
	ActionDelCPopular = "ActDelPopularStars"
	//ActionRejCPopular .
	ActionRejCPopular = "ActRejPopularStars"

	//ActionAIAddCPopular .
	ActionAIAddCPopular = "ActAIAddPopularStars"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is search service

func New

func New(c *conf.Config) (s *Service)

New new a search service

func (*Service) AIAddPopularStars

func (s *Service) AIAddPopularStars(c context.Context, values []*show.PopularStarsAP) (err error)

AIAddPopularStars add popular stars

func (*Service) AddEventTopic

func (s *Service) AddEventTopic(c context.Context, param *show.EventTopicAP, name string, uid int64) (err error)

AddEventTopic add channel EventTopic

func (*Service) AddPopularStars

func (s *Service) AddPopularStars(c context.Context, param *show.PopularStarsAP, name string, uid int64) (err error)

AddPopularStars add popular stars

func (*Service) DeleteEventTopic

func (s *Service) DeleteEventTopic(id int64, name string, uid int64) (err error)

DeleteEventTopic delete channel EventTopic

func (*Service) DeletePopularStars

func (s *Service) DeletePopularStars(id int64, name string, uid int64) (err error)

DeletePopularStars delete channel Popular

func (*Service) EventTopicList

func (s *Service) EventTopicList(lp *show.EventTopicLP) (pager *show.EventTopicPager, err error)

EventTopicList channel EventTopic list

func (*Service) PopularStarsList

func (s *Service) PopularStarsList(lp *show.PopularStarsLP) (pager *show.PopularStarsPager, err error)

PopularStarsList channel Popular list

func (*Service) RejectPopularStars

func (s *Service) RejectPopularStars(id int64, name string, uid int64) (err error)

RejectPopularStars reject channel Popular

func (*Service) UpdateEventTopic

func (s *Service) UpdateEventTopic(c context.Context, param *show.EventTopicUP, name string, uid int64) (err error)

UpdateEventTopic update channel EventTopic

func (*Service) UpdatePopularStars

func (s *Service) UpdatePopularStars(c context.Context, param *show.PopularStarsUP, name string, uid int64) (err error)

UpdatePopularStars update channel Popular

func (*Service) ValidMid

func (s *Service) ValidMid(mid string) (popStars *show.PopularStars, err error)

ValidMid mid must unique

Jump to

Keyboard shortcuts

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