diff --git a/docs/admin/admin_docs.go b/docs/admin/admin_docs.go index 57d2a94..ca779b2 100644 --- a/docs/admin/admin_docs.go +++ b/docs/admin/admin_docs.go @@ -1,4 +1,4 @@ -// Package admin Content generated by swaggo/swag. DO NOT EDIT +// Package admin Code generated by swaggo/swag. DO NOT EDIT package admin import "github.com/swaggo/swag" @@ -5828,6 +5828,9 @@ const docTemplateadmin = `{ "captcha": { "type": "string" }, + "captcha_id": { + "type": "string" + }, "password": { "type": "string" }, diff --git a/docs/admin/admin_swagger.json b/docs/admin/admin_swagger.json index 7d03c34..653bfc8 100644 --- a/docs/admin/admin_swagger.json +++ b/docs/admin/admin_swagger.json @@ -5821,6 +5821,9 @@ "captcha": { "type": "string" }, + "captcha_id": { + "type": "string" + }, "password": { "type": "string" }, diff --git a/docs/admin/admin_swagger.yaml b/docs/admin/admin_swagger.yaml index 55eb47a..827b185 100644 --- a/docs/admin/admin_swagger.yaml +++ b/docs/admin/admin_swagger.yaml @@ -297,6 +297,8 @@ definitions: properties: captcha: type: string + captcha_id: + type: string password: type: string platform: diff --git a/docs/api/api_docs.go b/docs/api/api_docs.go index 631ba24..c7976e2 100644 --- a/docs/api/api_docs.go +++ b/docs/api/api_docs.go @@ -1,4 +1,4 @@ -// Package api Content generated by swaggo/swag. DO NOT EDIT +// Package api Code generated by swaggo/swag. DO NOT EDIT package api import "github.com/swaggo/swag" @@ -1208,7 +1208,7 @@ const docTemplateapi = `{ "application/json" ], "tags": [ - "地址" + "System" ], "summary": "提交系统信息", "parameters": [ @@ -1238,6 +1238,35 @@ const docTemplateapi = `{ } } }, + "/sysinfo_ver": { + "post": { + "description": "获取系统版本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取系统版本信息", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.ErrorResponse" + } + } + } + } + }, "/users": { "get": { "security": [ diff --git a/docs/api/api_swagger.json b/docs/api/api_swagger.json index b2f5ff3..98c95a0 100644 --- a/docs/api/api_swagger.json +++ b/docs/api/api_swagger.json @@ -1201,7 +1201,7 @@ "application/json" ], "tags": [ - "地址" + "System" ], "summary": "提交系统信息", "parameters": [ @@ -1231,6 +1231,35 @@ } } }, + "/sysinfo_ver": { + "post": { + "description": "获取系统版本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "System" + ], + "summary": "获取系统版本信息", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.ErrorResponse" + } + } + } + } + }, "/users": { "get": { "security": [ diff --git a/docs/api/api_swagger.yaml b/docs/api/api_swagger.yaml index 7ed13bc..4bdcf82 100644 --- a/docs/api/api_swagger.yaml +++ b/docs/api/api_swagger.yaml @@ -973,7 +973,26 @@ paths: $ref: '#/definitions/response.ErrorResponse' summary: 提交系统信息 tags: - - 地址 + - System + /sysinfo_ver: + post: + consumes: + - application/json + description: 获取系统版本信息 + produces: + - application/json + responses: + "200": + description: OK + schema: + type: string + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.ErrorResponse' + summary: 获取系统版本信息 + tags: + - System /users: get: consumes: diff --git a/http/controller/api/peer.go b/http/controller/api/peer.go index 8a6f0ea..64d0174 100644 --- a/http/controller/api/peer.go +++ b/http/controller/api/peer.go @@ -14,7 +14,7 @@ type Peer struct { } // SysInfo -// @Tags 地址 +// @Tags System // @Summary 提交系统信息 // @Description 提交系统信息 // @Accept json @@ -58,6 +58,15 @@ func (p *Peer) SysInfo(c *gin.Context) { c.String(http.StatusOK, "SYSINFO_UPDATED") } +// SysInfoVer +// @Tags System +// @Summary 获取系统版本信息 +// @Description 获取系统版本信息 +// @Accept json +// @Produce json +// @Success 200 {string} string "" +// @Failure 500 {object} response.ErrorResponse +// @Router /sysinfo_ver [post] func (p *Peer) SysInfoVer(c *gin.Context) { //读取resources/version文件 v := service.AllService.AppService.GetAppVersion()