models

package
v0.0.0-...-5a8d840 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwardItems []*LuckdrawAward

Functions

This section is empty.

Types

type LuckdrawAward

type LuckdrawAward struct {
	Id        int    `json:"id"`
	Full_name string `json:"full_name"`
	Prize     string `json:"prize"`
	Total     int    `json:"total"`
	Sort      int    `json:"sort"`
	Winner    int    `json:"winner" xorm:"-"`
	Valid     bool   `json:"valid" xorm:"-"`
}

func FindDrawLevel

func FindDrawLevel() *LuckdrawAward

获取排序最小且有效的奖品

type LuckdrawUser

type LuckdrawUser struct {
	Id         int            `json:"Id"`
	Real_name  string         `json:"real_name"`
	Image      string         `json:"image"`
	Luck_times int            `json:"luck_times"`
	Prize      *LuckdrawAward `json:"prize" xorm:"-"`
}

func GetUsers

func GetUsers() []*LuckdrawUser

func GetUsersByNum

func GetUsersByNum(nums []int) []*LuckdrawUser

Jump to

Keyboard shortcuts

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