elec

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: 11 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 {
	// contains filtered or unexported fields
}

Service struct.

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service

New get service.

func (*Service) AppDailyBill

func (s *Service) AppDailyBill(c context.Context, mid int64, pn, ps int, ip string) (cb *model.ChargeBill, err error)

AppDailyBill daily settlement.

func (*Service) ArcUpdate

func (s *Service) ArcUpdate(c context.Context, mid, aid int64, st int8, ip string) (err error)

ArcUpdate arc open or close elec.

func (*Service) ArchiveState

func (s *Service) ArchiveState(c context.Context, aid, mid int64, ip string) (data *elecMdl.ArcState, err error)

ArchiveState get arc elec state.

func (*Service) Balance

func (s *Service) Balance(c context.Context, mid int64, ip string) (data *model.Balance, err error)

Balance get battery balance.

func (*Service) CheckIsFriend

func (s *Service) CheckIsFriend(c context.Context, data []*elecMdl.Rank, mid int64, ip string) (res []*elecMdl.Rank, err error)

CheckIsFriend check paymid state.

func (*Service) CurrentRank

func (s *Service) CurrentRank(c context.Context, mid int64, ip string) (data []*model.Rank, err error)

CurrentRank current rank.

func (*Service) DailyBill

func (s *Service) DailyBill(c context.Context, mid int64, pn, ps int, bg, end, ip string) (data *model.BillList, err error)

DailyBill daily settlement.

func (*Service) Notify

func (s *Service) Notify(c context.Context, ip string) (data *model.Notify, err error)

Notify get up-to-date notice.

func (*Service) RecentElec

func (s *Service) RecentElec(c context.Context, mid int64, pn, ps int, ip string) (l *model.RecentElecList, err error)

RecentElec get recent charge info.

func (*Service) RecentRank

func (s *Service) RecentRank(c context.Context, mid, size int64, ip string) (data []*model.Rank, err error)

RecentRank recent rank.

func (*Service) Remark

func (s *Service) Remark(c context.Context, mid, id int64, msg, ak, ck, ip string) (status int, err error)

Remark reply a msg.

func (*Service) RemarkDetail

func (s *Service) RemarkDetail(c context.Context, mid, id int64, ip string) (rm *model.Remark, err error)

RemarkDetail get remark detail.

func (*Service) RemarkList

func (s *Service) RemarkList(c context.Context, mid int64, pn, ps int, bg, end, ip string) (rms *model.RemarkList, err error)

RemarkList get remark list.

func (*Service) Status

func (s *Service) Status(c context.Context, mid int64, ip string) (data *model.Status, err error)

Status get elec setting status.

func (*Service) TotalRank

func (s *Service) TotalRank(c context.Context, mid int64, ip string) (data []*model.Rank, err error)

TotalRank total rank.

func (*Service) UpStatus

func (s *Service) UpStatus(c context.Context, mid int64, spday int, ip string) (err error)

UpStatus update elec setting status.

func (*Service) UserInfo

func (s *Service) UserInfo(c context.Context, mid int64, ip string) (data *model.UserInfo, err error)

UserInfo get user elec info.

func (*Service) UserState

func (s *Service) UserState(c context.Context, mid int64, ip, ak, ck string) (data *elecMdl.UserState, err error)

UserState get user elec state.

func (*Service) UserUpdate

func (s *Service) UserUpdate(c context.Context, mid int64, st int8, ip string) (data *model.UserInfo, err error)

UserUpdate user join or exit elec.

Jump to

Keyboard shortcuts

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