33 lines
1.5 KiB
Go
33 lines
1.5 KiB
Go
// =================================================================================
|
||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||
// =================================================================================
|
||
|
||
package do
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/frame/g"
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
)
|
||
|
||
// Rewards is the golang structure of table rewards for DAO operations like Where/Data.
|
||
type Rewards struct {
|
||
g.Meta `orm:"table:rewards, do:true"`
|
||
Id interface{} // 奖励ID
|
||
RewardTypeId interface{} // 奖励类型ID
|
||
Name interface{} // 奖励名称(如100积分、5元优惠券)
|
||
Description interface{} // 奖励描述
|
||
Source interface{} // 来源:1=系统内置,2=门店自定义
|
||
StoreId interface{} // 门店ID,系统内置奖励为NULL
|
||
Value interface{} // 奖励值(如积分数额、优惠金额)
|
||
Status interface{} // 状态:1=正常,2=禁用
|
||
CreatedAt *gtime.Time // 创建时间
|
||
UpdatedAt *gtime.Time // 更新时间
|
||
DeletedAt *gtime.Time // 软删除时间戳
|
||
TotalNum interface{} // 奖励总数量,NULL表示不限量
|
||
UsedNum interface{} // 已使用数量
|
||
ExpireType interface{} // 过期类型:1=时间段过期,2=领取后多少天过期
|
||
ValidFrom *gtime.Time // 有效开始时间(expire_type=1 时使用)
|
||
ValidTo *gtime.Time // 有效结束时间(expire_type=1 时使用)
|
||
ExpireDays interface{} // 领取后多少天过期(expire_type=2 时使用)
|
||
}
|