model

package
v0.0.0-...-ab204d3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameComment = "comment"
View Source
const TableNameFlagInfo = "flag_info"
View Source
const TableNameProp = "props"
View Source
const TableNameSiege = "siege"
View Source
const TableNameSignIn = "sign_in"
View Source
const TableNameUser = "user"
View Source
const TableNameUserInfo = "user_info"
View Source
const TableNameVip = "vip"
View Source
const TableNameWallet = "wallet"
View Source
const TableNameWaterFlow = "water_flow"

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID        string `gorm:"column:id;primaryKey" json:"id"`
	UserID    string `gorm:"column:user_id;not null" json:"user_id"`
	SigninID  string `gorm:"column:signin_id;not null" json:"signin_id"`
	Content   string `gorm:"column:content;not null" json:"content"`
	CreatedAt int64  `gorm:"column:created_at" json:"created_at"`
}

Comment mapped from table <comment>

func (*Comment) TableName

func (*Comment) TableName() string

TableName Comment's table name

type FlagInfo

type FlagInfo struct {
	ID                string `gorm:"column:id;primaryKey" json:"id"`
	UserID            string `gorm:"column:user_id;not null" json:"user_id"`
	Name              string `gorm:"column:name;not null" json:"name"`
	Status            string `gorm:"column:status;not null" json:"status"`
	CreatedAt         int64  `gorm:"column:created_at" json:"created_at"`
	TotalTime         int32  `gorm:"column:total_time;not null" json:"total_time"`
	StartTime         int64  `gorm:"column:start_time" json:"start_time"`
	ChallengeNum      int32  `gorm:"column:challenge_num;not null" json:"challenge_num"`
	TotalMaskNum      int32  `gorm:"column:total_mask_num;not null" json:"total_mask_num"`
	TotalResurrectNum int32  `gorm:"column:total_resurrect_num;not null" json:"total_resurrect_num"`
}

FlagInfo mapped from table <flag_info>

func (*FlagInfo) TableName

func (*FlagInfo) TableName() string

TableName FlagInfo's table name

type Prop

type Prop struct {
	ID     string `gorm:"column:id;primaryKey" json:"id"`
	FlagID string `gorm:"column:flag_id;not null" json:"flag_id"`
	Type   int32  `gorm:"column:type;not null" json:"type"`
	UseAt  int64  `gorm:"column:use_at" json:"use_at"`
}

Prop mapped from table <props>

func (*Prop) TableName

func (*Prop) TableName() string

TableName Prop's table name

type Siege

type Siege struct {
	ID        string `gorm:"column:id;primaryKey" json:"id"`
	UserID    string `gorm:"column:user_id;not null" json:"user_id"`
	FlagID    string `gorm:"column:flag_id;not null" json:"flag_id"`
	CreatedAt int64  `gorm:"column:created_at" json:"created_at"`
}

Siege mapped from table <siege>

func (*Siege) TableName

func (*Siege) TableName() string

TableName Siege's table name

type SignIn

type SignIn struct {
	ID          string `gorm:"column:id;primaryKey" json:"id"`
	FlagID      string `gorm:"column:flag_id;not null" json:"flag_id"`
	UserID      string `gorm:"column:user_id;not null" json:"user_id"`
	CreatedAt   int64  `gorm:"column:created_at" json:"created_at"`
	CurrentTime int32  `gorm:"column:current_time;not null" json:"current_time"`
	TotalTime   int32  `gorm:"column:total_time;not null" json:"total_time"`
	Content     string `gorm:"column:content;not null" json:"content"`
	PictureURL  string `gorm:"column:picture_url;not null" json:"picture_url"`
	IsSkip      int32  `gorm:"column:is_skip;not null" json:"is_skip"`
}

SignIn mapped from table <sign_in>

func (*SignIn) TableName

func (*SignIn) TableName() string

TableName SignIn's table name

type User

type User struct {
	ID       string `gorm:"column:id;primaryKey" json:"id"`
	Username string `gorm:"column:username;not null" json:"username"`
	Password string `gorm:"column:password;not null" json:"password"`
}

User mapped from table <user>

func (*User) TableName

func (*User) TableName() string

TableName User's table name

type UserInfo

type UserInfo struct {
	ID        string `gorm:"column:id;primaryKey" json:"id"`
	Name      string `gorm:"column:name;not null" json:"name"`
	Signature string `gorm:"column:signature;not null" json:"signature"`
	Gender    string `gorm:"column:gender;not null" json:"gender"`
	Avatar    string `gorm:"column:avatar;not null" json:"avatar"`
	CreatedAt int64  `gorm:"column:created_at" json:"created_at"`
}

UserInfo mapped from table <user_info>

func (*UserInfo) TableName

func (*UserInfo) TableName() string

TableName UserInfo's table name

type Vip

type Vip struct {
	ID        string `gorm:"column:id;primaryKey" json:"id"`
	UserID    string `gorm:"column:user_id;not null" json:"user_id"`
	StartTime int64  `gorm:"column:start_time" json:"start_time"`
	EndTime   int64  `gorm:"column:end_time" json:"end_time"`
}

Vip mapped from table <vip>

func (*Vip) TableName

func (*Vip) TableName() string

TableName Vip's table name

type Wallet

type Wallet struct {
	ID      string `gorm:"column:id;primaryKey" json:"id"`
	UserID  string `gorm:"column:user_id;not null" json:"user_id"`
	GoldNum int64  `gorm:"column:gold_num;not null" json:"gold_num"`
}

Wallet mapped from table <wallet>

func (*Wallet) TableName

func (*Wallet) TableName() string

TableName Wallet's table name

type WaterFlow

type WaterFlow struct {
	ID        string `gorm:"column:id;primaryKey" json:"id"`
	UserID    string `gorm:"column:user_id;not null" json:"user_id"`
	GoldNum   int64  `gorm:"column:gold_num;not null" json:"gold_num"`
	CreatedAt int64  `gorm:"column:created_at" json:"created_at"`
	Content   string `gorm:"column:content;not null" json:"content"`
}

WaterFlow mapped from table <water_flow>

func (*WaterFlow) TableName

func (*WaterFlow) TableName() string

TableName WaterFlow's table name

Jump to

Keyboard shortcuts

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