From 7d9996e9f6354c01e8eeaceafb87ccd1575b12e8 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 21 May 2025 16:39:56 +0800 Subject: [PATCH] kx --- internal/biz/bo/product_bo.go | 1 + internal/data/model/product.gen.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/biz/bo/product_bo.go b/internal/biz/bo/product_bo.go index a10cde8..7c73c9c 100644 --- a/internal/biz/bo/product_bo.go +++ b/internal/biz/bo/product_bo.go @@ -14,6 +14,7 @@ type ProductBo struct { BatchNo string MchId string MiniMum int32 // 使用券金额门槛 + Amount int32 Channel vo.Channel AvailableType vo.AvailableType AvailableDays uint32 diff --git a/internal/data/model/product.gen.go b/internal/data/model/product.gen.go index a5e6bc4..f2cdfe9 100644 --- a/internal/data/model/product.gen.go +++ b/internal/data/model/product.gen.go @@ -22,6 +22,7 @@ type Product struct { Channel uint8 `gorm:"column:channel;not null;comment:1:微信 2:支付宝" json:"channel"` // 1:微信 2:支付宝 AvailableType uint8 `gorm:"column:available_type;not null;comment:1:固定有效期 2:动态有效期" json:"available_type"` AvailableDays uint32 `gorm:"column:available_days;not null;comment:领取后多少天内" json:"available_days"` + Amount int32 `gorm:"column:amount;not null;comment:面额" json:"amount"` CreateTime *time.Time `gorm:"column:create_time;not null" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time" json:"update_time"` }