下载
Build docker and publish / build (20.15.1) (push) Has been cancelled

This commit is contained in:
2026-01-23 03:48:30 -08:00
parent cd0ef80d15
commit a98fcbfe73
19 changed files with 528 additions and 100 deletions
+18
View File
@@ -93,6 +93,16 @@ type (
OtherContact string `json:"other_contact,optional"`
Notes string `json:"notes,optional"`
}
GetDownloadLinkRequest {
InviteCode string `form:"invite_code,optional"`
Platform string `form:"platform" validate:"required,oneof=windows mac ios android"`
}
GetDownloadLinkResponse {
Url string `json:"url"`
}
GetAppVersionRequest {
Platform string `form:"platform" validate:"required,oneof=windows mac ios android"`
}
)
@server (
@@ -140,4 +150,12 @@ service ppanel {
@doc "Get Client"
@handler GetClient
get /client returns (GetSubscribeClientResponse)
@doc "Get Download Link"
@handler GetDownloadLink
get /client/download (GetDownloadLinkRequest) returns (GetDownloadLinkResponse)
@doc "Get App Version"
@handler GetAppVersion
get /app/version (GetAppVersionRequest) returns (ApplicationVersion)
}
+11 -5
View File
@@ -90,11 +90,17 @@ type (
SubscribeType string `json:"subscribe_type"`
}
ApplicationVersion {
Id int64 `json:"id"`
Url string `json:"url"`
Version string `json:"version" validate:"required"`
Description string `json:"description"`
IsDefault bool `json:"is_default"`
Id int64 `json:"id"`
Url string `json:"url"`
Version string `json:"version" validate:"required"`
MinVersion string `json:"min_version"`
ForceUpdate bool `json:"force_update"`
Description map[string]string `json:"description"`
FileSize int64 `json:"file_size"`
FileHash string `json:"file_hash"`
IsDefault bool `json:"is_default"`
IsInReview bool `json:"is_in_review"`
CreatedAt int64 `json:"created_at"`
}
ApplicationResponse {
Applications []ApplicationResponseInfo `json:"applications"`