lottery

package
v0.0.0-...-c16945a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RATE_DENOMINATOR = 1000000

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(authGroup *gin.RouterGroup)

SetupRouter set up lottery router

Types

type AwardInfo

type AwardInfo struct {
	ID          string `bson:"_id" json:"-"`
	Name        string
	Description string
	Pic         string
	Total       uint32
	DisplayRate uint32 `bson:"displayRate" json:"rate"`
	Rate        uint32 `json:"-"`
	Value       uint32 `json:"-"`
}

type LotteryInfo

type LotteryInfo struct {
	ID          string `bson:"_id"`
	Title       string
	Description string
	Awards      []AwardInfo `bson:"awards"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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