dao

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: 3 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 dao

func New

func New() (dao *Dao)

New init mysql db

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) Ping

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

Ping dao ping

func (*Dao) RankElecAllAV

func (d *Dao) RankElecAllAV(ctx context.Context, upMID int64, avID int64, rankSize int) (rank *api.RankElecAVResp, err error)

RankElecAllAV .

func (*Dao) RankElecMonth

func (d *Dao) RankElecMonth(ctx context.Context, avID, upMID int64, rankSize int) (resp *api.RankElecMonthResp, err error)

RankElecMonth .

func (*Dao) RankElecMonthUP

func (d *Dao) RankElecMonthUP(ctx context.Context, upMID int64, rankSize int) (rank *api.RankElecUPResp, err error)

RankElecMonthUP .

Jump to

Keyboard shortcuts

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