refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
32 lines
2.2 KiB
Go
32 lines
2.2 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 TableNameTaskCenterEventLogs = "task_center_event_logs"
|
||
|
||
// TaskCenterEventLogs 任务中心-事件日志
|
||
type TaskCenterEventLogs struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
||
EventID string `gorm:"column:event_id;comment:事件ID(字符串)" json:"event_id"` // 事件ID(字符串)
|
||
SourceType string `gorm:"column:source_type;comment:来源类型:order|invite" json:"source_type"` // 来源类型:order|invite
|
||
SourceID int64 `gorm:"column:source_id;comment:来源业务ID(订单ID或用户ID)" json:"source_id"` // 来源业务ID(订单ID或用户ID)
|
||
UserID int64 `gorm:"column:user_id;comment:用户ID(users.id)" json:"user_id"` // 用户ID(users.id)
|
||
TaskID int64 `gorm:"column:task_id;comment:任务ID(task_center_tasks.id)" json:"task_id"` // 任务ID(task_center_tasks.id)
|
||
TierID int64 `gorm:"column:tier_id;comment:档位ID(task_center_task_tiers.id)" json:"tier_id"` // 档位ID(task_center_task_tiers.id)
|
||
IdempotencyKey string `gorm:"column:idempotency_key;not null;comment:幂等键:user:task:tier:source" json:"idempotency_key"` // 幂等键:user:task:tier:source
|
||
Status string `gorm:"column:status;comment:处理状态:granted|skipped|rejected" json:"status"` // 处理状态:granted|skipped|rejected
|
||
Result string `gorm:"column:result;comment:处理结果详情(JSON)" json:"result"` // 处理结果详情(JSON)
|
||
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
||
}
|
||
|
||
// TableName TaskCenterEventLogs's table name
|
||
func (*TaskCenterEventLogs) TableName() string {
|
||
return TableNameTaskCenterEventLogs
|
||
}
|