remove socket-port function
This commit is contained in:
parent
ec0d98627d
commit
d350c3e96f
3 changed files with 0 additions and 18 deletions
|
@ -25,7 +25,6 @@ type ServerModel struct {
|
|||
LockAccount bool
|
||||
Token string
|
||||
USBAutoMount string
|
||||
SocketPort string
|
||||
UpdateUrl string
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue