feat(subscription): add Language parameter to GetSubscription request and update query logic

This commit is contained in:
Chang lue Tsen
2025-09-04 03:14:31 -04:00
parent f632ea2c89
commit 10757612f5
5 changed files with 32 additions and 7 deletions
+4 -1
View File
@@ -25,6 +25,9 @@ type (
PortalPurchaseResponse {
OrderNo string `json:"order_no"`
}
GetSubscriptionRequest {
Language string `form:"language"`
}
GetSubscriptionResponse {
List []Subscribe `json:"list"`
}
@@ -75,7 +78,7 @@ service ppanel {
@doc "Get Subscription"
@handler GetSubscription
get /subscribe returns (GetSubscriptionResponse)
get /subscribe (GetSubscriptionRequest) returns (GetSubscriptionResponse)
@doc "Pre Purchase Order"
@handler PrePurchaseOrder