bws

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

Service struct

func New

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

New Service

func (*Service) Achievement

func (s *Service) Achievement(c context.Context, p *bwsmdl.ParamID) (rs *bwsmdl.Achievement, err error)

Achievement Achievement

func (*Service) Achievements

func (s *Service) Achievements(c context.Context, p *bwsmdl.ParamID) (rs *bwsmdl.Achievements, err error)

Achievements achievements list

func (*Service) AdminInfo

func (s *Service) AdminInfo(c context.Context, bid, mid int64) (data *bwsmdl.AdminInfo, err error)

AdminInfo get admin info.

func (*Service) Award

func (s *Service) Award(c context.Context, loginMid int64, p *bwsmdl.ParamAward) (err error)

Award achievement award

func (*Service) Binding

func (s *Service) Binding(c context.Context, loginMid int64, p *bwsmdl.ParamBinding) (err error)

Binding binding by mid

func (*Service) KeyInfo

func (s *Service) KeyInfo(c context.Context, loginMid, keyID, mid int64, key, typ string, del int) (data json.RawMessage, err error)

KeyInfo .

func (*Service) Lottery

func (s *Service) Lottery(c context.Context, bid, loginMid, aid int64, day string) (data *bwsmdl.LotteryUser, err error)

Lottery get lottery account.

func (*Service) LotteryCheck

func (s *Service) LotteryCheck(c context.Context, mid, aid int64, day string) (data []int64, err error)

LotteryCheck .

func (*Service) Point

func (s *Service) Point(c context.Context, p *bwsmdl.ParamID) (rs *bwsmdl.Point, err error)

Point point

func (*Service) Points

func (s *Service) Points(c context.Context, p *bwsmdl.ParamPoints) (rs map[string][]*bwsmdl.Point, err error)

Points points list

func (*Service) RedisInfo

func (s *Service) RedisInfo(c context.Context, loginMid, mid int64, key, day, typ string, del int) (data json.RawMessage, err error)

RedisInfo .

func (*Service) Unlock

func (s *Service) Unlock(c context.Context, owner int64, arg *bwsmdl.ParamUnlock) (err error)

Unlock unlock point.

func (*Service) User

func (s *Service) User(c context.Context, bid, mid int64, key string) (user *bwsmdl.User, err error)

User user info.

Jump to

Keyboard shortcuts

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