fix(api): standardize formatting and add missing newlines in API files

This commit is contained in:
Chang lue Tsen
2025-07-05 14:30:05 -04:00
parent 987e25e7ac
commit 1a849fd461
41 changed files with 140 additions and 131 deletions
+2 -1
View File
@@ -75,4 +75,5 @@ service ppanel {
@doc "Get Ads Detail"
@handler GetAdsDetail
get /detail (GetAdsDetailRequest) returns (Ads)
}
}
+2 -1
View File
@@ -72,4 +72,5 @@ service ppanel {
@doc "Get announcement"
@handler GetAnnouncement
get /detail (GetAnnouncementRequest) returns (Announcement)
}
}
+2 -2
View File
@@ -25,7 +25,6 @@ type (
GetAuthMethodListResponse {
List []AuthMethodConfig `json:"list"`
}
TestSmsSendRequest {
AreaCode string `json:"area_code" validate:"required"`
Telephone string `json:"telephone" validate:"required"`
@@ -69,4 +68,5 @@ service ppanel {
@doc "Get email support platform"
@handler GetEmailPlatform
get /email_platform returns (PlatformResponse)
}
}
+2 -1
View File
@@ -84,4 +84,5 @@ service ppanel {
@doc "Query ticket wait reply"
@handler QueryTicketWaitReply
get /ticket returns (TicketWaitRelpyResponse)
}
}
+2 -1
View File
@@ -81,4 +81,5 @@ service ppanel {
@doc "Get coupon list"
@handler GetCouponList
get /list (GetCouponListRequest) returns (GetCouponListResponse)
}
}
+3 -2
View File
@@ -1,9 +1,10 @@
syntax = "v1"
info(
info (
title: "Device API"
desc: "API for ppanel"
author: "Tension"
email: "tension@ppanel.com"
version: "0.0.1"
)
)
+2 -1
View File
@@ -36,4 +36,5 @@ service ppanel {
@doc "Get message log list"
@handler GetMessageLogList
get /message/list (GetMessageLogListRequest) returns (GetMessageLogListResponse)
}
}
+2 -1
View File
@@ -64,4 +64,5 @@ service ppanel {
@doc "Update order status"
@handler UpdateOrderStatus
put /status (UpdateOrderStatusRequest)
}
}
+2 -1
View File
@@ -77,4 +77,5 @@ service ppanel {
@doc "Get supported payment platform"
@handler GetPaymentPlatform
get /platform returns (PlatformResponse)
}
}
+2 -1
View File
@@ -186,4 +186,5 @@ service ppanel {
@doc "Get rule group list"
@handler GetRuleGroupList
get /rule_group_list returns (GetRuleGroupResponse)
}
}
+2 -4
View File
@@ -88,13 +88,10 @@ type (
GroupId int64 `form:"group_id,omitempty"`
Search string `form:"search,omitempty"`
}
SubscribeItem {
Subscribe
Sold int64 `json:"sold"`
}
GetSubscribeListResponse {
List []SubscribeItem `json:"list"`
Total int64 `json:"total"`
@@ -160,4 +157,5 @@ service ppanel {
@doc "Subscribe sort"
@handler SubscribeSort
post /sort (SubscribeSortRequest)
}
}
+2 -1
View File
@@ -201,4 +201,5 @@ service ppanel {
@doc "Update Verify Code Config"
@handler UpdateVerifyCodeConfig
put /verify_code_config (VerifyCodeConfig)
}
}
+2 -1
View File
@@ -58,4 +58,5 @@ service ppanel {
@doc "Create ticket follow"
@handler CreateTicketFollow
post /follow (CreateTicketFollowRequest)
}
}
+4 -4
View File
@@ -1,7 +1,7 @@
syntax = "v1"
info(
title: "Tools Api"
info (
title: "Tools Api"
desc: "API for ppanel"
author: "Tension"
email: "tension@ppanel.com"
@@ -21,7 +21,6 @@ type (
group: admin/tool
middleware: AuthMiddleware
)
service ppanel {
@doc "Get System Log"
@handler GetSystemLog
@@ -30,4 +29,5 @@ service ppanel {
@doc "Restart System"
@handler RestartSystem
get /restart
}
}
+2 -1
View File
@@ -274,4 +274,5 @@ service ppanel {
@doc "Get user login logs"
@handler GetUserLoginLogs
get /login/logs (GetUserLoginLogsRequest) returns (GetUserLoginLogsResponse)
}
}