basePath: / definitions: errorx.CodeErrorResponse: properties: code: example: 200 type: integer data: {} msg: example: OK type: string type: object fiber.Route: properties: method: description: Public fields type: string name: description: Route's name type: string params: description: Case sensitive param keys items: type: string type: array path: description: Original registered route path type: string type: object models.User: properties: account: type: string active: type: boolean alias: type: string contact: type: string email: type: string emailVerify: type: boolean id: type: string lastLoginTime: type: string memo: type: string registerTime: type: string userName: type: string type: object response.Response: properties: code: example: 200 type: integer data: {} msg: example: OK type: string type: object info: contact: email: 919411476@qq.com name: Shikong description: 基于 Fiber 框架的 swagger license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: GoFiber Study API version: "1.0" paths: /: get: consumes: - application/json description: 简单的 HelloWorld 示例 produces: - application/json responses: "200": description: OK schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: type: string type: object default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: HelloWorld tags: - HelloWorld /error: delete: consumes: - application/json description: 错误信息示例 produces: - application/json responses: default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 错误处理 tags: - Error get: consumes: - application/json description: 错误信息示例 produces: - application/json responses: default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 错误处理 tags: - Error patch: consumes: - application/json description: 错误信息示例 produces: - application/json responses: default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 错误处理 tags: - Error post: consumes: - application/json description: 错误信息示例 produces: - application/json responses: default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 错误处理 tags: - Error put: consumes: - application/json description: 错误信息示例 produces: - application/json responses: default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 错误处理 tags: - Error /routes: get: consumes: - application/json description: 获取所有路由信息 produces: - application/json responses: "200": description: OK schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: items: items: $ref: '#/definitions/fiber.Route' type: array type: array type: object summary: 获取所有路由 tags: - Routes /user/account: get: consumes: - application/json description: 根据 账号 获取用户信息 parameters: - description: 账号名称 in: query name: account required: true type: string produces: - application/json responses: "200": description: OK schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: $ref: '#/definitions/models.User' type: object default: description: "" schema: $ref: '#/definitions/errorx.CodeErrorResponse' summary: 根据 账号 获取用户信息 tags: - User swagger: "2.0"