charge

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 dao

func New

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

New fn

func (*Dao) AvChargeStatis

func (d *Dao) AvChargeStatis(c context.Context, id int64, limit int) (data []*model.AvChargeStatis, err error)

AvChargeStatis get av_charge_statis

func (*Dao) AvDailyCharge

func (d *Dao) AvDailyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)

AvDailyCharge av_daily_charge

func (*Dao) AvMonthlyCharge

func (d *Dao) AvMonthlyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)

AvMonthlyCharge av_monthly_charge

func (*Dao) AvWeeklyCharge

func (d *Dao) AvWeeklyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)

AvWeeklyCharge av_weekly_charge

func (*Dao) BgmCharge

func (d *Dao) BgmCharge(c context.Context, date time.Time, id int64, limit int, table string) (bgms []*model.BgmCharge, err error)

BgmCharge get bgm charge by date

func (*Dao) BgmStatis

func (d *Dao) BgmStatis(c context.Context, id int64, limit int) (bgms []*model.BgmStatis, err error)

BgmStatis bgm statis

func (*Dao) Close

func (d *Dao) Close()

Close close connections of mc, redis, db.

func (*Dao) CmStatis

func (d *Dao) CmStatis(c context.Context, id int64, limit int) (columns []*model.ColumnStatis, err error)

CmStatis column statis

func (*Dao) ColumnCharge

func (d *Dao) ColumnCharge(c context.Context, date time.Time, id int64, limit int, table string) (columns []*model.Column, err error)

ColumnCharge get column charge by date

func (*Dao) CountCmDailyCharge

func (d *Dao) CountCmDailyCharge(c context.Context, date string) (count int64, err error)

CountCmDailyCharge get column_daily_charge count

func (*Dao) DelStatisTable

func (d *Dao) DelStatisTable(c context.Context, table, date string) (rows int64, err error)

DelStatisTable delete av_charge_statis

func (*Dao) Exec

func (d *Dao) Exec(c context.Context, sql string) (err error)

Exec exec

func (*Dao) GetAvCharge

func (d *Dao) GetAvCharge(c context.Context, sql string, date string, id int64, limit int) (data []*model.AvCharge, err error)

GetAvCharge get av_charge

func (*Dao) GetBgm

func (d *Dao) GetBgm(c context.Context, id int64, limit int64) (bs []*model.Bgm, last int64, err error)

GetBgm get bgms

func (*Dao) GetUpCharges

func (d *Dao) GetUpCharges(c context.Context, table string, date string, offset, limit int64) (last int64, charges map[int64]*model.UpCharge, err error)

GetUpCharges get up_charge

func (*Dao) InsertAvChargeStatisBatch

func (d *Dao) InsertAvChargeStatisBatch(c context.Context, vals string) (count int64, err error)

InsertAvChargeStatisBatch add av charge statis batch

func (*Dao) InsertAvChargeTable

func (d *Dao) InsertAvChargeTable(c context.Context, vals, table string) (rows int64, err error)

InsertAvChargeTable add av charge batch

func (*Dao) InsertBgmChargeTable

func (d *Dao) InsertBgmChargeTable(c context.Context, vals, table string) (rows int64, err error)

InsertBgmChargeTable insert bgm charge

func (*Dao) InsertBgmStatisBatch

func (d *Dao) InsertBgmStatisBatch(c context.Context, vals string) (rows int64, err error)

InsertBgmStatisBatch insert bgm statis

func (*Dao) InsertCmChargeTable

func (d *Dao) InsertCmChargeTable(c context.Context, vals, table string) (rows int64, err error)

InsertCmChargeTable insert column charge

func (*Dao) InsertCmStatisBatch

func (d *Dao) InsertCmStatisBatch(c context.Context, vals string) (rows int64, err error)

InsertCmStatisBatch insert column statis

func (*Dao) InsertStatisTable

func (d *Dao) InsertStatisTable(c context.Context, table, vals string) (rows int64, err error)

InsertStatisTable add archive_charge_date_statis batch

func (*Dao) InsertUpCharge

func (d *Dao) InsertUpCharge(c context.Context, table string, values string) (rows int64, err error)

InsertUpCharge insert up_charge

func (*Dao) Ping

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

Ping ping health.

func (*Dao) Query

func (d *Dao) Query(c context.Context, sql string) (rows *sql.Rows, err error)

Query query

func (*Dao) QueryRow

func (d *Dao) QueryRow(c context.Context, sql string) (rows *sql.Row)

QueryRow QueryRow

type IAvCharge

type IAvCharge func(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)

IAvCharge av_charge_weekly monthly

Jump to

Keyboard shortcuts

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