|
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)
|
|
}
|