remove socket-port function

This commit is contained in:
LinkLeong 2022-12-22 03:53:55 +00:00
parent ec0d98627d
commit d350c3e96f
3 changed files with 0 additions and 18 deletions

View file

@ -25,7 +25,6 @@ type ServerModel struct {
LockAccount bool
Token string
USBAutoMount string
SocketPort string
UpdateUrl string
}

View file

@ -49,7 +49,6 @@ func InitRouter() *gin.Engine {
// r.GET("/v1/guide/check", v1.GetGuideCheck) // /v1/sys/guide_check
r.GET("/v1/sys/debug", v1.GetSystemConfigDebug) // //debug
r.GET("/v1/sys/socket-port", v1.GetSystemSocketPort) //sys/socket_port
r.GET("/v1/sys/version/check", v1.GetSystemCheckVersion)
r.GET("/ping", func(ctx *gin.Context) {
ctx.String(200, "pong")

View file

@ -235,22 +235,6 @@ func GetSystemUtilization(c *gin.Context) {
c.JSON(common_err.SUCCESS, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: data})
}
// @Summary Get notification port
// @Produce application/json
// @Accept application/json
// @Tags sys
// @Security ApiKeyAuth
// @Success 200 {string} string "ok"
// @Router /sys/socket/port [get]
func GetSystemSocketPort(c *gin.Context) {
c.JSON(common_err.SUCCESS,
model.Result{
Success: common_err.SUCCESS,
Message: common_err.GetMsg(common_err.SUCCESS),
Data: config.ServerInfo.SocketPort, // @tiger 这里最好封装成 {'port': ...} 的形式,来体现出参的上下文
})
}
// @Summary get cpu info
// @Produce application/json
// @Accept application/json