123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- 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"
|