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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Click to show internal directories.
Click to hide internal directories.