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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SectionEntries

type SectionEntries struct {
	// contains filtered or unexported fields
}

SectionEntries section entries

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config, executor ctrl.Executor) (s *Service)

New fn

func (*Service) AvChargeDBStore

func (s *Service) AvChargeDBStore(c context.Context, table string, avChargeMap map[int64]*model.AvCharge) error

AvChargeDBStore store data

func (*Service) AvChargeStatisDBStore

func (s *Service) AvChargeStatisDBStore(c context.Context, chargeStatisMap map[int64]*model.AvChargeStatis) error

AvChargeStatisDBStore store data

func (*Service) BatchInsertUpCharge

func (s *Service) BatchInsertUpCharge(c context.Context, table string, us map[int64]*model.UpCharge) (err error)

BatchInsertUpCharge batch insert up charge

func (*Service) CalAvChargeStatis

func (s *Service) CalAvChargeStatis(dailyCharge *model.AvCharge, chargeStatisMap map[int64]*model.AvChargeStatis)

CalAvChargeStatis cal av charge statis

func (*Service) CheckTaskColumn

func (s *Service) CheckTaskColumn(c context.Context, date string) (err error)

CheckTaskColumn check column count by date

func (*Service) GetAvCharge

func (s *Service) GetAvCharge(c context.Context, date time.Time, fn dao.IAvCharge) (avCharges []*model.AvCharge, err error)

GetAvCharge get av charge

func (*Service) GetAvChargeStatis

func (s *Service) GetAvChargeStatis(c context.Context) (avChargeStatis []*model.AvChargeStatis, err error)

GetAvChargeStatis get av charge statistics

func (*Service) GetAvChargeStatisMap

func (s *Service) GetAvChargeStatisMap(c context.Context) (chargeStatisMap map[int64]*model.AvChargeStatis, err error)

GetAvChargeStatisMap get av charge statistics map

func (*Service) GetBgms

func (s *Service) GetBgms(c context.Context, limit int64) (bm map[int64][]*model.Bgm, err error)

GetBgms map[av_id][]*model.Bgm

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check dao health.

func (*Service) RunAndSendMail

func (s *Service) RunAndSendMail(c context.Context, date time.Time) (err error)

RunAndSendMail run and send mail

Jump to

Keyboard shortcuts

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