refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
29 lines
1.8 KiB
Go
29 lines
1.8 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
||
package model
|
||
|
||
import (
|
||
"time"
|
||
)
|
||
|
||
const TableNameTaskCenterTaskRewards = "task_center_task_rewards"
|
||
|
||
// TaskCenterTaskRewards 任务中心-奖励配置
|
||
type TaskCenterTaskRewards struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
||
TaskID int64 `gorm:"column:task_id;not null;comment:关联任务ID(task_center_tasks.id)" json:"task_id"` // 关联任务ID(task_center_tasks.id)
|
||
TierID int64 `gorm:"column:tier_id;not null;comment:关联档位ID(task_center_task_tiers.id)" json:"tier_id"` // 关联档位ID(task_center_task_tiers.id)
|
||
RewardType string `gorm:"column:reward_type;not null;comment:奖励类型:points|coupon|item_card|title" json:"reward_type"` // 奖励类型:points|coupon|item_card|title
|
||
RewardPayload string `gorm:"column:reward_payload;not null;comment:奖励载荷(JSON):各类型所需参数" json:"reward_payload"` // 奖励载荷(JSON):各类型所需参数
|
||
Quantity int64 `gorm:"column:quantity;not null;default:1;comment:发放数量或上限(视类型)" json:"quantity"` // 发放数量或上限(视类型)
|
||
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
||
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间
|
||
}
|
||
|
||
// TableName TaskCenterTaskRewards's table name
|
||
func (*TaskCenterTaskRewards) TableName() string {
|
||
return TableNameTaskCenterTaskRewards
|
||
}
|