mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
api: add DisPlayIndex info (#397)
This commit is contained in:
parent
5bb7efdeb9
commit
9d96c58ff9
@ -33,6 +33,7 @@ type CommonServerInfo struct {
|
|||||||
IPV4 string `json:"ipv4"`
|
IPV4 string `json:"ipv4"`
|
||||||
IPV6 string `json:"ipv6"`
|
IPV6 string `json:"ipv6"`
|
||||||
ValidIP string `json:"valid_ip"`
|
ValidIP string `json:"valid_ip"`
|
||||||
|
DisplayIndex int `json:"display_index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatusResponse 服务器状态子结构 包含服务器信息与状态信息
|
// StatusResponse 服务器状态子结构 包含服务器信息与状态信息
|
||||||
@ -148,6 +149,7 @@ func (s *ServerAPIService) GetAllStatus() *ServerStatusResponse {
|
|||||||
IPV4: ipv4,
|
IPV4: ipv4,
|
||||||
IPV6: ipv6,
|
IPV6: ipv6,
|
||||||
ValidIP: validIP,
|
ValidIP: validIP,
|
||||||
|
DisplayIndex: v.DisplayIndex,
|
||||||
}
|
}
|
||||||
res.Result = append(res.Result, &StatusResponse{
|
res.Result = append(res.Result, &StatusResponse{
|
||||||
CommonServerInfo: info,
|
CommonServerInfo: info,
|
||||||
|
Loading…
Reference in New Issue
Block a user