feat(node): add PreViewNodeMultiplier endpoint and response structure

This commit is contained in:
Chang lue Tsen
2025-09-29 13:12:37 +09:00
parent 02f0d711ba
commit 453ad18303
6 changed files with 67 additions and 1 deletions
+8
View File
@@ -18,6 +18,10 @@ type (
SetNodeMultiplierRequest {
Periods []TimePeriod `json:"periods"`
}
PreViewNodeMultiplierResponse {
CurrentTime string `json:"current_time"`
Ratio float32 `json:"ratio"`
}
)
@server (
@@ -117,5 +121,9 @@ service ppanel {
@doc "Update Verify Code Config"
@handler UpdateVerifyCodeConfig
put /verify_code_config (VerifyCodeConfig)
@doc "PreView Node Multiplier"
@handler PreViewNodeMultiplier
get /node_multiplier/preview returns (PreViewNodeMultiplierResponse)
}