card

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: 3 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 .

func New

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

New create service instance and return.

func (*Service) AllGroup

func (s *Service) AllGroup(c context.Context, mid int64) (res *v1.ModelAllGroupResp, err error)

AllGroup all group.

func (*Service) Card

func (s *Service) Card(c context.Context, id int64) (res *v1.ModelCard, err error)

Card get card info by id.

func (*Service) CardHots

func (s *Service) CardHots(c context.Context) (res []*v1.ModelCard, err error)

CardHots get all hots cards.

func (*Service) CardsByGid

func (s *Service) CardsByGid(c context.Context, id int64) (res []*v1.ModelCard, err error)

CardsByGid get cards by gid.

func (*Service) Demount

func (s *Service) Demount(c context.Context, mid int64) (err error)

Demount card demount.

func (*Service) Equip

func (s *Service) Equip(c context.Context, arg *v1.ModelArgEquip) (err error)

Equip card equip.

func (*Service) UserCard

func (s *Service) UserCard(c context.Context, mid int64) (res *v1.ModelUserCard, err error)

UserCard user card info.

Jump to

Keyboard shortcuts

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