channel

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

Documentation

Index

Constants

View Source
const (
	//TabOnline channel tab online
	TabOnline = 1
	//TabDownline channel tab down line
	TabDownline = 2
	//TabWaitOnline channel tab wait to line
	TabWaitOnline = 3
	//OrderTimeDown channel tab oder by stime desc
	OrderTimeDown = 1
	//OrderTimeUp channel tab oder by stime asc
	OrderTimeUp = 2
	//ActionAddCTab log action
	ActionAddCTab = "ActAddChannelTab"
	//ActionUpCTab log action
	ActionUpCTab = "ActUpChannelTab"
	//ActionDelCTab log action
	ActionDelCTab = "ActDelChannelTab"
	//ActionOfflineCTab log action
	ActionOfflineCTab = "ActOfflineChannelTab"
)

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) AddCardSetup

func (s *Service) AddCardSetup(card *cardmodel.AddCardSetup, person string, uid int64) (err error)

AddCardSetup card set up

func (*Service) AddTab

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

AddTab add channel tab

func (*Service) CardSetupList

func (s *Service) CardSetupList(id int, t string, person string, title string, pn int, ps int) (cPager *cardmodel.SetupPager, err error)

CardSetupList card set up

func (*Service) DelCardSetup

func (s *Service) DelCardSetup(id int, t string, person string, uid int64) (err error)

DelCardSetup card set up

func (*Service) DeleteTab

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

DeleteTab delete channel tab

func (*Service) IsValid

func (s *Service) IsValid(id, tagID, sTime int64, eTime int64, priority int) (err error)

IsValid validate data

func (*Service) OfflineTab

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

OfflineTab offline channel tab

func (*Service) TabList

func (s *Service) TabList(lp *show.ChannelTabLP) (pager *show.ChannelTabPager, err error)

TabList channel tab list

func (*Service) UpdateCardSetup

func (s *Service) UpdateCardSetup(id int, card *cardmodel.AddCardSetup, person string, uid int64) (err error)

UpdateCardSetup card set up

func (*Service) UpdateTab

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

UpdateTab update channel tab

Jump to

Keyboard shortcuts

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