basePath: /api definitions: e.R: properties: code: $ref: '#/definitions/e.Rescode' data: {} message: {} type: object e.Rescode: enum: - 200 - 201 - 1001 - 1002 - 1003 - 1004 - 1005 - 1006 - 1007 - 1008 - 1009 - 1010 - 1011 - 1012 - 1013 - 1014 - 1015 - 1016 - 1017 type: integer x-enum-varnames: - SUCCESS - ERROR - TokenIsInvalid - TokenIsExpired - DELETEFAIL - UPDATEFAIL - PaginationFailed - JSONParsingFailed - TheUserAlreadyExists - AlreadyExists - TheSystemIsAbnormal - CodeIsError - Theuseralreadyexists - ThePhoneNumberIsWrong - AnExceptionOccursWhenSendingAnSMSVerificationCode - TokenIsFaild - ThePasswordIsWrongOrThePhoneNumberIsIncorrect - HasSend - TheUserIsEmpty models.UserRegist: properties: account: description: 账号 maxLength: 20 minLength: 6 type: string code: description: 验证码 maxLength: 6 minLength: 6 type: string password: description: 密码 maxLength: 20 minLength: 6 type: string phone: description: 手机号 maxLength: 11 minLength: 11 type: string username: description: 用户名 maxLength: 20 minLength: 2 type: string required: - account - code - password - phone - username type: object page.PageParams: properties: desc: type: string page: type: integer size: type: integer type: object host: 127.0.0.1:8080 info: contact: {} description: 统一登录平台 title: 统一登录平台 version: "1.0" paths: /admin/getalluser: post: consumes: - application/json parameters: - description: 分页信息 in: body name: req required: true schema: $ref: '#/definitions/page.PageParams' responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 获取所有用户 tags: - 用户管理 /admin/user: delete: consumes: - application/json parameters: - description: id in: query name: id required: true type: string responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 删除用户 tags: - 用户管理 post: consumes: - application/json parameters: - description: 分页信息 in: body name: req required: true schema: $ref: '#/definitions/page.PageParams' responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 获取所有用户 tags: - 用户管理 /codelogin: post: consumes: - application/json parameters: - description: 账号信息 in: body name: req required: true schema: $ref: '#/definitions/models.UserRegist' responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 验证码登录 tags: - 用户管理 /sendcode: post: consumes: - application/json parameters: - description: 手机号 in: query name: phone required: true type: string responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 发送验证码 tags: - 用户管理 /user: post: consumes: - application/json parameters: - description: 账号信息 in: body name: req required: true schema: $ref: '#/definitions/models.UserRegist' responses: "200": description: OK schema: $ref: '#/definitions/e.R' summary: 账号密码登录 tags: - 用户管理 swagger: "2.0"