fix dashboard custom theme, expose HideForGuest for api (#434)

* fix: dashboard custom theme

* api: expose HideForGuest
This commit is contained in:
UUBulb
2024-10-10 13:38:09 +08:00
committed by GitHub
parent 55f5c89c1c
commit 0b7f43b149
3 changed files with 23 additions and 10 deletions

View File

@@ -34,6 +34,7 @@ type CommonServerInfo struct {
IPV6 string `json:"ipv6"`
ValidIP string `json:"valid_ip"`
DisplayIndex int `json:"display_index"`
HideForGuest bool `json:"hide_for_guest"`
}
// StatusResponse 服务器状态子结构 包含服务器信息与状态信息
@@ -150,6 +151,7 @@ func (s *ServerAPIService) GetAllStatus() *ServerStatusResponse {
IPV6: ipv6,
ValidIP: validIP,
DisplayIndex: v.DisplayIndex,
HideForGuest: v.HideForGuest,
}
res.Result = append(res.Result, &StatusResponse{
CommonServerInfo: info,