From 7880151ef2d9abb77acc4fbcb6b1796848ba586a Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Mon, 24 May 2021 10:37:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor=F0=9F=8E=A8=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E6=9B=B4=E5=90=8DMonitor=E3=80=8BServerMonit?= =?UTF-8?q?or?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/other/apis/{server.go => sys_server_monitor.go} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename app/other/apis/{server.go => sys_server_monitor.go} (93%) diff --git a/app/other/apis/server.go b/app/other/apis/sys_server_monitor.go similarity index 93% rename from app/other/apis/server.go rename to app/other/apis/sys_server_monitor.go index dc02255..037970b 100644 --- a/app/other/apis/server.go +++ b/app/other/apis/sys_server_monitor.go @@ -19,7 +19,7 @@ const ( GB = 1024 * MB ) -type Monitor struct { +type ServerMonitor struct { api.Api } @@ -28,8 +28,8 @@ type Monitor struct { // @Description 获取JSON // @Tags 系统信息 // @Success 200 {object} response.Response "{"code": 200, "data": [...]}" -// @Router /api/v1/settings/serverInfo [get] -func (e Monitor) ServerInfo(c *gin.Context) { +// @Router /api/v1/server-monitor [get] +func (e ServerMonitor) ServerInfo(c *gin.Context) { e.Context = c osDic := make(map[string]interface{}, 0)