mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
refactor🎨 系统监控更名Monitor》ServerMonitor
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user