feat(discount): change discount type to float64 for improved precision

This commit is contained in:
Tension
2025-12-28 22:04:50 +08:00
parent 495c4529ed
commit 7a2000f696
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -2117,8 +2117,8 @@ type SubscribeConfig struct {
}
type SubscribeDiscount struct {
Quantity int64 `json:"quantity"`
Discount int64 `json:"discount"`
Quantity int64 `json:"quantity"`
Discount float64 `json:"discount"`
}
type SubscribeGroup struct {