gofound/handler/base-handler.go

19 lines
300 B
Go
Raw Normal View History

2022-10-28 04:23:32 +00:00
package handler
import (
"github.com/gin-gonic/gin"
"myschools.me/suguo/gofound/service"
)
// 释放GC
func GC(c *gin.Context) {
service.ServerGC()
ResponseSuccess(c)
}
// Status 获取服务器状态
func Status(c *gin.Context) {
r := service.ServerStatus()
ResponseSuccessWithData(c, r)
}