修复(#75): 按数量匹配套餐列表促销

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-27 05:59:57 -07:00
parent 406fb80661
commit 6628ce06db
3 changed files with 63 additions and 9 deletions
-1
View File
@@ -35,7 +35,6 @@ type SubscribePromo struct {
SubscribeId int64 `gorm:"type:bigint unsigned;not null;comment:Subscribe ID"`
Quantity int64 `gorm:"type:bigint;not null;default:1;comment:Quantity"`
PromoRuleId int64 `gorm:"type:bigint unsigned;not null;comment:Promo Rule ID"`
Quantity int64 `gorm:"type:bigint;not null;default:1;comment:Subscribe Quantity"`
PromoPrice int64 `gorm:"type:bigint;not null;default:0;comment:Promo Price"`
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`