swagger.yaml 2.4 KB
Newer Older
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
1
definitions:
2 3 4 5 6 7 8 9 10 11
  api.ChangePassWordStutrc:
    properties:
      newPassWord:
        type: string
      passWord:
        type: string
      userName:
        type: string
    type: object
  api.RegistAndLoginStuct:
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
12 13 14 15 16 17 18 19 20 21
    properties:
      passWord:
        type: string
      userName:
        type: string
    type: object
info:
  contact: {}
  license: {}
paths:
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
  /user/changePassWord:
    post:
      parameters:
      - description: 用户修改密码
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.ChangePassWordStutrc'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"修改成功"}'
          schema:
            type: string
      summary: 用户修改密码
      tags:
      - User
  /user/login:
    post:
      parameters:
      - description: 用户登录接口
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.RegistAndLoginStuct'
          type: object
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"登陆成功"}'
          schema:
            type: string
      summary: 用户登录
      tags:
      - User
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
62 63 64 65 66 67 68 69
  /user/regist:
    post:
      parameters:
      - description: 用户注册接口
        in: body
        name: data
        required: true
        schema:
70
          $ref: '#/definitions/api.RegistAndLoginStuct'
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
71 72
          type: object
      produces:
73
      - application/json
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
74 75
      responses:
        "200":
76
          description: '{"success":true,"data":{},"msg":"注册成功"}'
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
77 78
          schema:
            type: string
79 80 81
      summary: 用户注册账号
      tags:
      - User
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
  /user/uploadHeaderImg:
    post:
      consumes:
      - multipart/form-data
      parameters:
      - description: 用户上传头像
        in: formData
        name: headerImg
        required: true
        type: file
      - description: 用户上传头像
        in: formData
        name: userName
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"上传成功"}'
          schema:
            type: string
      summary: 用户上传头像
      tags:
      - User
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
107
swagger: "2.0"