refactor🎨 系统监控更名Monitor》ServerMonitor
This commit is contained in:
1 parent
cfa88b5ecf
commit
7880151ef2
1 file changed
+3
-3
@@ -19,7 +19,7 @@ const (
|
|||||||
GB = 1024 * MB
|
GB = 1024 * MB
|
||||||
)
|
)
|
||||||
|
|
||||||
type Monitor struct {
|
type ServerMonitor struct {
|
||||||
api.Api
|
api.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,8 +28,8 @@ type Monitor struct {
|
|||||||
// @Description 获取JSON
|
// @Description 获取JSON
|
||||||
// @Tags 系统信息
|
// @Tags 系统信息
|
||||||
// @Success 200 {object} response.Response "{"code": 200, "data": [...]}"
|
// @Success 200 {object} response.Response "{"code": 200, "data": [...]}"
|
||||||
// @Router /api/v1/settings/serverInfo [get]
|
// @Router /api/v1/server-monitor [get]
|
||||||
func (e Monitor) ServerInfo(c *gin.Context) {
|
func (e ServerMonitor) ServerInfo(c *gin.Context) {
|
||||||
e.Context = c
|
e.Context = c
|
||||||
|
|
||||||
osDic := make(map[string]interface{}, 0)
|
osDic := make(map[string]interface{}, 0)
|
||||||
Reference in new issue
Block a user