Documentation ¶
Index ¶
- func Round(x float64) float64
- type Service
- func (s *Service) AddCoin(c context.Context, arg *pb.AddCoinReq) (res *pb.AddCoinReply, err error)
- func (s *Service) AddUserCoinExp(c context.Context, arg *pb.AddUserCoinExpReq) (res *pb.AddUserCoinExpReply, err error)
- func (s *Service) AddedCoins(c context.Context, mid, upMid int64) (a *coin.AddCoins, err error)
- func (s *Service) CheckBusiness(bs string) (id int64, err error)
- func (s *Service) Close() (err error)
- func (s *Service) CoinsLog(c context.Context, arg *pb.CoinsLogReq) (res *pb.CoinsLogReply, err error)
- func (s *Service) GetBusinessName(id int64) (res string, err error)
- func (s *Service) ItemCoin(c context.Context, aid, tp int64) (count int64, err error)
- func (s *Service) ItemUserCoins(c context.Context, arg *pb.ItemUserCoinsReq) (res *pb.ItemUserCoinsReply, err error)
- func (s *Service) List(c context.Context, arg *pb.ListReq) (res *pb.ListReply, err error)
- func (s *Service) ModifyCoins(c context.Context, arg *pb.ModifyCoinsReq) (res *pb.ModifyCoinsReply, err error)
- func (s *Service) MustCheckBusiness(bs string) (id int64, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) TodayExp(c context.Context, arg *pb.TodayExpReq) (res *pb.TodayExpReply, err error)
- func (s *Service) UpdateAddCoin(c context.Context, arg *pb.UpdateAddCoinReq) (res *pb.UpdateAddCoinReply, err error)
- func (s *Service) UpdateItemCoins(c context.Context, aid, tp, coins int64) (err error)
- func (s *Service) UpdateSettle(c context.Context, aid, tp, expSub int64, describe string) (err error)
- func (s *Service) UserCoins(c context.Context, arg *pb.UserCoinsReq) (res *pb.UserCoinsReply, err error)
- func (s *Service) WebAddCoin(c context.Context, mid, upmid, maxCoin, aid, tp, multiply int64, typeid int16) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service define service.
func (*Service) AddCoin ¶
func (s *Service) AddCoin(c context.Context, arg *pb.AddCoinReq) (res *pb.AddCoinReply, err error)
AddCoin add coin to archive.
func (*Service) AddUserCoinExp ¶
func (s *Service) AddUserCoinExp(c context.Context, arg *pb.AddUserCoinExpReq) (res *pb.AddUserCoinExpReply, err error)
AddUserCoinExp .
func (*Service) AddedCoins ¶
AddedCoins get coin added to up.
func (*Service) CheckBusiness ¶
CheckBusiness .
func (*Service) CoinsLog ¶
func (s *Service) CoinsLog(c context.Context, arg *pb.CoinsLogReq) (res *pb.CoinsLogReply, err error)
CoinsLog coins log
func (*Service) GetBusinessName ¶
GetBusinessName .
func (*Service) ItemUserCoins ¶
func (s *Service) ItemUserCoins(c context.Context, arg *pb.ItemUserCoinsReq) (res *pb.ItemUserCoinsReply, err error)
ItemUserCoins get coins added of archive.
func (*Service) ModifyCoins ¶
func (s *Service) ModifyCoins(c context.Context, arg *pb.ModifyCoinsReq) (res *pb.ModifyCoinsReply, err error)
ModifyCoins modify user coins.
func (*Service) MustCheckBusiness ¶
MustCheckBusiness . +wd:ignore
func (*Service) TodayExp ¶
func (s *Service) TodayExp(c context.Context, arg *pb.TodayExpReq) (res *pb.TodayExpReply, err error)
TodayExp get today coin added exp.
func (*Service) UpdateAddCoin ¶
func (s *Service) UpdateAddCoin(c context.Context, arg *pb.UpdateAddCoinReq) (res *pb.UpdateAddCoinReply, err error)
UpdateAddCoin .
func (*Service) UpdateItemCoins ¶
UpdateItemCoins set archive coin added.
func (*Service) UpdateSettle ¶
func (s *Service) UpdateSettle(c context.Context, aid, tp, expSub int64, describe string) (err error)
UpdateSettle coin settle.
func (*Service) UserCoins ¶
func (s *Service) UserCoins(c context.Context, arg *pb.UserCoinsReq) (res *pb.UserCoinsReply, err error)
UserCoins get user coins.
Click to show internal directories.
Click to hide internal directories.