service

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Dao              *dao.Dao
	ElecUserSettings atomic.Value
	Asyncer          *fanout.Fanout
}

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) ElecMonthRankAV

func (s *Service) ElecMonthRankAV(ctx context.Context, upMID int64, avID int64, rankSize int) (res *model.RankElecAVProto, err error)

ElecMonthRankAV 本月av充电榜单

func (*Service) ElecMonthRankUP

func (s *Service) ElecMonthRankUP(ctx context.Context, upMID int64, rankSize int) (r *model.RankElecUPProto, err error)

ElecMonthRankUP 本月up充电榜单

func (*Service) ElecTotalRankAV

func (s *Service) ElecTotalRankAV(ctx context.Context, upMID int64, avID int64, rankSize int) (res *model.RankElecAVProto, err error)

ElecTotalRankAV 历史av充电榜单

func (*Service) Ping

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

Ping Service

func (*Service) UpdateElecPrepRankFromMessage

func (s *Service) UpdateElecPrepRankFromMessage(ctx context.Context, pr rank.PrepRank, payMID int64, message string, hidden bool) (err error)

UpdateElecPrepRankFromMessage .

func (*Service) UpdateElecPrepRankFromOrder

func (s *Service) UpdateElecPrepRankFromOrder(ctx context.Context, pr rank.PrepRank, payMID int64, fee int64) (err error)

UpdateElecPrepRankFromOrder .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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