medal

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: 7 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, p *service.Public) *Service

New get service

func (*Service) CheckMedal

func (s *Service) CheckMedal(c context.Context, mid int64, name string) (valid int, err error)

CheckMedal check medal name valid

func (*Service) Medal

func (s *Service) Medal(c context.Context, mid int64) (t *mdMdl.Medal, err error)

Medal get medal.

func (*Service) OpenMedal

func (s *Service) OpenMedal(c context.Context, mid int64, name string) (err error)

OpenMedal open medal.

func (*Service) Rank

func (s *Service) Rank(c context.Context, mid int64) (rank []*mdMdl.FansRank, err error)

Rank get fans rank list

func (*Service) RecentFans

func (s *Service) RecentFans(c context.Context, mid int64) (res []*mdMdl.RecentFans, err error)

RecentFans get recent fans.

func (*Service) Rename

func (s *Service) Rename(c context.Context, mid int64, name, ak, ck string) (err error)

Rename rename medal name

Jump to

Keyboard shortcuts

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