Documentation ¶
Index ¶
- type Service
- func (s *Service) AddPoint(c context.Context, pc *model.ArgPoint) (status int8, err error)
- func (s *Service) AllConfig(c context.Context) map[string]int64
- func (s *Service) Close()
- func (s *Service) Config(c context.Context, changeType int, mid int64, bp float64) (point int64, err error)
- func (s *Service) ConsumePoint(c context.Context, pc *model.ArgPointConsume) (status int8, err error)
- func (s *Service) OldPointHistory(c context.Context, mid int64, pn, ps int) (phs []*model.OldPointHistory, total int, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PointAddByBp(c context.Context, pa *model.ArgPointAdd) (p int64, err error)
- func (s *Service) PointHistory(c context.Context, mid int64, cursor, ps int) (phs []*model.PointHistory, total int, ncursor int, err error)
- func (s *Service) PointInfo(c context.Context, mid int64) (pi *model.PointInfo, err error)
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 (*Service) Config ¶
func (s *Service) Config(c context.Context, changeType int, mid int64, bp float64) (point int64, err error)
Config get point config.
func (*Service) ConsumePoint ¶
func (s *Service) ConsumePoint(c context.Context, pc *model.ArgPointConsume) (status int8, err error)
ConsumePoint .
func (*Service) OldPointHistory ¶
func (s *Service) OldPointHistory(c context.Context, mid int64, pn, ps int) (phs []*model.OldPointHistory, total int, err error)
OldPointHistory old point history .
func (*Service) PointAddByBp ¶
PointAddByBp by bp.
Click to show internal directories.
Click to hide internal directories.