entity

package
v0.0.0-...-160c400 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TicketCheckedStatus = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type LotteryRecord

type LotteryRecord struct {
	xdb.Entity
	Number string `json:"number"`
	Period string `json:"period"`
	Type   string `json:"type"`
	xdb.CUDTime
}

func (LotteryRecord) TableName

func (e LotteryRecord) TableName() string

type LotteryTicket

type LotteryTicket struct {
	xdb.Entity
	UserID     int64  `json:"user_id"`
	Number     string `json:"number"`
	TicketType string `json:"ticket_type"`
	Period     string `json:"period"`
	Level      int    `json:"level"`
	Price      int    `json:"price"`
	Status     int    `json:"status"`
	xdb.CUDTime
}

func (LotteryTicket) IsChecked

func (t LotteryTicket) IsChecked() bool

func (LotteryTicket) TableName

func (t LotteryTicket) TableName() string

Jump to

Keyboard shortcuts

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