show

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: 10 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 {
	// db
	DB *gorm.DB
}

Dao struct user of color egg Dao.

func New

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

New create a instance of color egg Dao and return.

func (*Dao) AAFindByID

func (d *Dao) AAFindByID(c context.Context, id int64) (active *show.AppActive, err error)

AAFindByID app active table find by id

func (*Dao) ChannelTabAdd

func (d *Dao) ChannelTabAdd(param *show.ChannelTabAP) (err error)

ChannelTabAdd add channel tab

func (*Dao) ChannelTabDelete

func (d *Dao) ChannelTabDelete(id int64) (err error)

ChannelTabDelete delete channel tab

func (*Dao) ChannelTabOffline

func (d *Dao) ChannelTabOffline(id int64) (err error)

ChannelTabOffline offline channel tab

func (*Dao) ChannelTabUpdate

func (d *Dao) ChannelTabUpdate(param *show.ChannelTabUP) (err error)

ChannelTabUpdate update channel tab

func (*Dao) ChannelTabValid

func (d *Dao) ChannelTabValid(id, tagID, sTime int64, eTime int64, priority int) (count int, err error)

ChannelTabValid conflict check

func (*Dao) Close

func (d *Dao) Close()

Close close connection of db , mc.

func (*Dao) ETFindByID

func (d *Dao) ETFindByID(id int64) (topic *show.EventTopic, err error)

ETFindByID event topic table find by id

func (*Dao) EventTopicAdd

func (d *Dao) EventTopicAdd(param *show.EventTopicAP) (err error)

EventTopicAdd add event topic

func (*Dao) EventTopicDelete

func (d *Dao) EventTopicDelete(id int64) (err error)

EventTopicDelete delete cevent topic

func (*Dao) EventTopicUpdate

func (d *Dao) EventTopicUpdate(param *show.EventTopicUP) (err error)

EventTopicUpdate update event topic

func (*Dao) Ping

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

Ping check connection of db , mc.

func (*Dao) PopularStarsAdd

func (d *Dao) PopularStarsAdd(param *show.PopularStarsAP) (err error)

PopularStarsAdd add popuar stars card

func (*Dao) PopularStarsDelete

func (d *Dao) PopularStarsDelete(id int64, t string) (err error)

PopularStarsDelete delete popuar stars card

func (*Dao) PopularStarsReject

func (d *Dao) PopularStarsReject(id int64, t string) (err error)

PopularStarsReject reject popuar stars card

func (*Dao) PopularStarsUpdate

func (d *Dao) PopularStarsUpdate(param *show.PopularStarsUP) (err error)

PopularStarsUpdate update popuar stars card

func (*Dao) SWBFindByID

func (d *Dao) SWBFindByID(id int64) (card *show.SearchWebCard, err error)

SWBFindByID search web card table find by id

func (*Dao) SWFindByID

func (d *Dao) SWFindByID(id int64) (value *show.SearchWeb, err error)

SWFindByID search web table value find by id

func (*Dao) SWTimeValid

func (d *Dao) SWTimeValid(param *show.SWTimeValid) (count int, err error)

SWTimeValid search web time validate

func (*Dao) SearchWebAdd

func (d *Dao) SearchWebAdd(param *show.SearchWebAP) (err error)

SearchWebAdd add search web

func (*Dao) SearchWebCardAdd

func (d *Dao) SearchWebCardAdd(param *show.SearchWebCardAP) (err error)

SearchWebCardAdd add search web card

func (*Dao) SearchWebCardDelete

func (d *Dao) SearchWebCardDelete(id int64) (err error)

SearchWebCardDelete search delete cweb card

func (*Dao) SearchWebCardUpdate

func (d *Dao) SearchWebCardUpdate(param *show.SearchWebCardUP) (err error)

SearchWebCardUpdate search update web card

func (*Dao) SearchWebDelete

func (d *Dao) SearchWebDelete(id int64) (err error)

SearchWebDelete delete search web

func (*Dao) SearchWebOption

func (d *Dao) SearchWebOption(up *show.SearchWebOption) (err error)

SearchWebOption option search web

func (*Dao) SearchWebUpdate

func (d *Dao) SearchWebUpdate(param *show.SearchWebUP) (err error)

SearchWebUpdate update

Jump to

Keyboard shortcuts

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