新功能(#77): 套餐列表返回促销信息

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-26 22:27:59 -07:00
parent d2f9289338
commit 7bc54214e2
7 changed files with 406 additions and 67 deletions
+8
View File
@@ -2785,6 +2785,13 @@ type StripePayment struct {
PublishableKey string `json:"publishable_key"`
}
type SubscribePromo struct {
RuleName string `json:"rule_name"`
RuleType string `json:"rule_type"`
PromoPrice int64 `json:"promo_price"`
ExpiresAt int64 `json:"expires_at"`
}
type Subscribe struct {
Id int64 `json:"id"`
Name string `json:"name"`
@@ -2793,6 +2800,7 @@ type Subscribe struct {
UnitPrice int64 `json:"unit_price"`
UnitTime string `json:"unit_time"`
Discount []SubscribeDiscount `json:"discount"`
Promo *SubscribePromo `json:"promo"`
NodeCount int64 `json:"node_count"`
Replacement int64 `json:"replacement"`
Inventory int64 `json:"inventory"`