mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 10:04:55 +08:00
fix(api): 补齐 bat-api 控制与后端 RPC
This commit is contained in:
@@ -162,10 +162,19 @@ type LauncherEnvelope[T any] struct {
|
||||
}
|
||||
|
||||
type AdminIndexResponse struct {
|
||||
Service string `json:"service"`
|
||||
Panel string `json:"panel"`
|
||||
Status string `json:"status"`
|
||||
Links []string `json:"links"`
|
||||
Service string `json:"service"`
|
||||
Panel string `json:"panel"`
|
||||
Status string `json:"status"`
|
||||
Links []string `json:"links"`
|
||||
Controls []string `json:"controls"`
|
||||
}
|
||||
|
||||
type AdminControlResponse struct {
|
||||
Service string `json:"service"`
|
||||
Action string `json:"action"`
|
||||
RPCMethod string `json:"rpc_method"`
|
||||
Status string `json:"status"`
|
||||
Result any `json:"result"`
|
||||
}
|
||||
|
||||
func writeNoStoreJSON(w http.ResponseWriter, status int, body any) {
|
||||
|
||||
Reference in New Issue
Block a user