refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
26 lines
912 B
Go
26 lines
912 B
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 TableNameOrderCoupons = "order_coupons"
|
|
|
|
// OrderCoupons 订单-优惠券使用明细
|
|
type OrderCoupons struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
OrderID int64 `gorm:"column:order_id;not null" json:"order_id"`
|
|
UserCouponID int64 `gorm:"column:user_coupon_id;not null" json:"user_coupon_id"`
|
|
AppliedAmount int64 `gorm:"column:applied_amount;not null;comment:本次抵扣金额(分)" json:"applied_amount"` // 本次抵扣金额(分)
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
|
|
}
|
|
|
|
// TableName OrderCoupons's table name
|
|
func (*OrderCoupons) TableName() string {
|
|
return TableNameOrderCoupons
|
|
}
|