Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LtBlackip ¶
type LtBlackip struct {
Id int `xorm:"not null pk autoincr INT(10)"`
Ip string `xorm:"not null default '' comment('IP地址') VARCHAR(50)"`
Blacktime int `xorm:"not null default 0 comment('黑名单限制到期时间') INT(10)"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)"`
SysUpdated int `xorm:"not null default 0 comment('修改时间') INT(10)"`
}
type LtCode ¶
type LtCode struct {
Id int `xorm:"not null pk autoincr INT(10)"`
GiftId int `xorm:"not null default 0 comment('奖品ID,关联lt_gift表') INT(10)"`
Code string `xorm:"not null default '' comment('虚拟券编码') VARCHAR(255)"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)"`
SysUpdated int `xorm:"not null default 0 comment('更新时间') INT(10)"`
SysStatus int `xorm:"not null default 0 comment('状态,0正常,1作废,2已发放') SMALLINT(5)"`
}
type LtGift ¶
type LtGift struct {
Id int `xorm:"not null pk autoincr INT(10)" json:"id"`
Title string `xorm:"not null default '' comment('奖品名称') VARCHAR(255)" json:"title"`
PrizeNum int `xorm:"not null default -1 comment('奖品数量,0 无限量,>0限量,<0无奖品') INT(11)" json:"-"`
LeftNum int `xorm:"not null default 0 comment('剩余数量') INT(11)" json:"-"`
PrizeCode string `xorm:"not null default '' comment('0-9999表示100%,0-0表示万分之一的中奖概率') VARCHAR(50)" json:"-"`
PrizeTime int `xorm:"not null default 0 comment('发奖周期,D天') INT(10)" json:"-"`
Img string `xorm:"not null default '' comment('奖品图片') VARCHAR(255)" json:"img"`
Displayorder int `xorm:"not null default 0 comment('位置序号,小的排在前面') INT(10)" json:"displayorder"`
Gtype int `` /* 134-byte string literal not displayed */
Gdata string `xorm:"not null default '' comment('扩展数据,如:虚拟币数量') VARCHAR(255)" json:"-"`
TimeBegin int `xorm:"not null default 0 comment('开始时间') INT(11)" json:"-"`
TimeEnd int `xorm:"not null default 0 comment('结束时间') INT(11)" json:"-"`
PrizeData string `xorm:"comment('发奖计划,[[时间1,数量1],[时间2,数量2]]') MEDIUMTEXT" json:"-"`
PrizeBegin int `xorm:"not null default 0 comment('发奖计划周期的开始') INT(11)" json:"-"`
PrizeEnd int `xorm:"not null default 0 comment('发奖计划周期的结束') INT(11)" json:"-"`
SysStatus int `xorm:"not null default 0 comment('状态,0 正常,1 删除') SMALLINT(5)" json:"-"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)" json:"-"`
SysUpdated int `xorm:"not null default 0 comment('修改时间') INT(10)" json:"-"`
SysIp string `xorm:"not null default '' comment('操作人IP') VARCHAR(50)" json:"-"`
}
type LtResult ¶
type LtResult struct {
Id int `xorm:"not null pk autoincr INT(10)" json:"-"`
GiftId int `xorm:"not null default 0 comment('奖品ID,关联lt_gift表') INT(10)" json:"gift_id"`
GiftName string `xorm:"not null default '' comment('奖品名称') VARCHAR(255)" json:"gift_name"`
GiftType int `xorm:"not null default 0 comment('奖品类型,同lt_gift. gtype') INT(10)" json:"gift_type"`
Uid int `xorm:"not null default 0 comment('用户ID') INT(10)" json:"uid"`
Username string `xorm:"not null default '' comment('用户名') VARCHAR(50)" json:"username"`
PrizeCode int `xorm:"not null default 0 comment('抽奖编号(4位的随机数)') INT(10)" json:"-"`
GiftData string `xorm:"not null default '' comment('获奖信息') VARCHAR(255)" json:"-"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)" json:"-"`
SysIp string `xorm:"not null default '' comment('用户抽奖的IP') VARCHAR(50)" json:"-"`
SysStatus int `xorm:"not null default 0 comment('状态,0 正常,1删除,2作弊') SMALLINT(5)" json:"-"`
}
type LtUser ¶
type LtUser struct {
Id int `xorm:"not null pk autoincr INT(10)"`
Username string `xorm:"not null default '' comment('用户名') VARCHAR(50)"`
Blacktime int `xorm:"not null default 0 comment('黑名单限制到期时间') INT(10)"`
Realname string `xorm:"not null default '' comment('联系人') VARCHAR(50)"`
Mobile string `xorm:"not null default '' comment('手机号') VARCHAR(50)"`
Address string `xorm:"not null default '' comment('联系地址') VARCHAR(255)"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)"`
SysUpdated int `xorm:"not null default 0 comment('修改时间') INT(10)"`
SysIp string `xorm:"not null default '' comment('IP地址') VARCHAR(50)"`
}
type LtUserday ¶
type LtUserday struct {
Id int `xorm:"not null pk autoincr INT(10)"`
Uid int `xorm:"not null default 0 comment('用户ID') INT(10)"`
Day int `xorm:"not null default 0 comment('日期,如:20180725') INT(10)"`
Num int `xorm:"not null default 0 comment('次数') INT(10)"`
SysCreated int `xorm:"not null default 0 comment('创建时间') INT(10)"`
SysUpdated int `xorm:"not null default 0 comment('修改时间') INT(10)"`
}
Click to show internal directories.
Click to hide internal directories.