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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao define

func New

func New(c *conf.Config) (d *Dao)

New init dao

func (*Dao) CheckMedal

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

CheckMedal check medal name for up

func (*Dao) Medal

func (d *Dao) Medal(c context.Context, mid int64) (mdl *medal.Medal, err error)

Medal get medal

func (*Dao) OpenMedal

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

OpenMedal open medal for up

func (*Dao) Rank

func (d *Dao) Rank(c context.Context, mid int64) (rank []*medal.FansRank, err error)

Rank get fans rank list

func (*Dao) RecentFans

func (d *Dao) RecentFans(c context.Context, mid int64) (fans []*medal.RecentFans, err error)

RecentFans get a list of recent fans

func (*Dao) Rename

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

Rename rename medal name

func (*Dao) Status

func (d *Dao) Status(c context.Context, mid int64) (st *medal.Status, err error)

Status check if up can open medal

Jump to

Keyboard shortcuts

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