model_draw

package
v0.0.0-...-294a70e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Consts = map[string]reflect.Value{}
View Source
var Functions = map[string]reflect.Value{}
View Source
var Types = map[string]reflect.Type{
	"Action":       reflect.TypeOf((*Action)(nil)).Elem(),
	"Gift":         reflect.TypeOf((*Gift)(nil)).Elem(),
	"Player":       reflect.TypeOf((*Player)(nil)).Elem(),
	"Result":       reflect.TypeOf((*Result)(nil)).Elem(),
	"VerifyResult": reflect.TypeOf((*VerifyResult)(nil)).Elem(),
	"Voucher":      reflect.TypeOf((*Voucher)(nil)).Elem(),
}
View Source
var Variables = map[string]reflect.Value{}

Functions

This section is empty.

Types

type Action

type Action struct {
	Id              string    `json:"id"`
	Enable          int       `json:"enable"`
	Name            string    `json:"name"`
	BeginTime       time.Time `json:"beginTime"`
	EndTime         time.Time `json:"endTime"`
	MaxPlayCount    int       `json:"maxPlayCount"`
	MaxWinCount     int       `json:"maxWinCount"`
	DayMaxPlayCount int       `json:"dayMaxPlayCount"`
	DayMaxWinCount  int       `json:"dayMaxWinCount"`
	ConfirmSeconds  int       `json:"confirmSeconds"`
}

type Gift

type Gift struct {
	Id          string    `json:"id"`
	ActionID    string    `json:"actionId"`
	Enable      int       `json:"enable"`
	GiftType    int       `json:"giftType"`
	GiftName    string    `json:"giftName"`
	BeginTime   time.Time `json:"beginTime"`
	EndTime     time.Time `json:"endTime"`
	Odds        int       `json:"odds"`
	Count       int       `json:"count"`
	RemainCount int       `json:"remainCount"`
}

type Player

type Player struct {
	Id                 string
	ActionID           string
	PlayCount          int
	RemainPlayCount    int
	WinCount           int
	RemainWinCount     int
	DayPlayCount       int
	RemainDayPlayCount int
	DayWinCount        int
	RemainDayWinCount  int
	LastPlayTime       time.Time
}

func (*Player) CanPlay

func (m *Player) CanPlay() bool

func (*Player) CanWin

func (m *Player) CanWin() bool

type Result

type Result struct {
	ActionID string
	PlayerID string
	GiftType int
	GiftID   string
	GiftName string
	Voucher  *Voucher
	Player   *Player
	Success  bool
	Message  string
}

type VerifyResult

type VerifyResult struct {
	Success bool
	Message string
}

type Voucher

type Voucher struct {
	ActionID        string
	Used            bool
	PlayerID        string
	VoucherName     string
	VoucherCode     string
	VoucherPassword string
}

Jump to

Keyboard shortcuts

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