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: 8 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 resource dao.

func New

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

New init mysql db

func (*Dao) Audit

func (d *Dao) Audit(c context.Context) (res map[string][]int, err error)

Audit get audit.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) Ping

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

Ping check dao health.

func (*Dao) PosRecs

func (d *Dao) PosRecs(c context.Context, now time.Time) (res map[int8][]*model.Card, err error)

PosRecs get pos resrouce

func (*Dao) RecContents

func (d *Dao) RecContents(c context.Context, now time.Time) (res map[int][]*model.Content, aids map[int][]int64, err error)

RecContents get resource contents

func (*Dao) Relate

func (d *Dao) Relate(c context.Context, now time.Time) (relates []*model.Relate, err error)

Relate get all relate rec.

func (*Dao) SideBar

func (d *Dao) SideBar(ctx context.Context, now time.Time) (ss []*model.SideBar, limits map[int64][]*model.SideBarLimit, err error)

SideBar get side bar.

Jump to

Keyboard shortcuts

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