refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
29 lines
1.3 KiB
Go
29 lines
1.3 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 TableNameUserCouponLedger = "user_coupon_ledger"
|
|
|
|
// UserCouponLedger 用户优惠券流水
|
|
type UserCouponLedger struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"`
|
|
UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"`
|
|
UserCouponID int64 `gorm:"column:user_coupon_id;not null;comment:用户优惠券ID" json:"user_coupon_id"`
|
|
ChangeAmount int64 `gorm:"column:change_amount;not null;comment:变动金额(分,负数表示扣减)" json:"change_amount"`
|
|
BalanceAfter int64 `gorm:"column:balance_after;not null;comment:变动后余额(分)" json:"balance_after"`
|
|
OrderID int64 `gorm:"column:order_id;comment:关联订单ID" json:"order_id"`
|
|
Action string `gorm:"column:action;not null;comment:操作类型" json:"action"`
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"`
|
|
}
|
|
|
|
// TableName UserCouponLedger's table name
|
|
func (*UserCouponLedger) TableName() string {
|
|
return TableNameUserCouponLedger
|
|
}
|