基本功能已初步完善
Some checks failed
build / build (api, amd64, linux) (push) Has been cancelled
build / build (api, arm64, linux) (push) Has been cancelled
build / build (api.exe, amd64, windows) (push) Has been cancelled

This commit is contained in:
CN-JS-HuiBai
2026-04-17 20:41:47 +08:00
parent 25fd919477
commit b3435e5ef8
34 changed files with 3495 additions and 429 deletions

View File

@@ -557,6 +557,7 @@ func serializeAdminServer(server model.Server, groups map[int]model.ServerGroup,
if parentServer, ok := servers[*server.ParentID]; ok {
parent = gin.H{
"id": parentServer.ID,
"code": stringValue(parentServer.Code),
"type": parentServer.Type,
"name": parentServer.Name,
"host": parentServer.Host,
@@ -581,11 +582,11 @@ func serializeAdminServer(server model.Server, groups map[int]model.ServerGroup,
isOnline = 2
}
availableStatus := "offline"
availableStatus := 0
if isOnline == 1 {
availableStatus = "online_no_push"
availableStatus = 1
} else if isOnline == 2 {
availableStatus = "online"
availableStatus = 2
}
hasChildren := false
@@ -862,4 +863,3 @@ func isAllowedRouteAction(action string) bool {
return false
}
}