username password

This commit is contained in:
pixelqm
2019-09-13 16:58:36 +08:00
parent ccefb35790
commit 6738d0eb1a
10 changed files with 77 additions and 66 deletions

View File

@@ -244,7 +244,7 @@ var doc = `{
}
}
},
"/user/changePassWord": {
"/user/changePassword": {
"post": {
"security": [
{
@@ -266,7 +266,7 @@ var doc = `{
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.ChangePassWordStutrc"
"$ref": "#/definitions/api.ChangePasswordStutrc"
}
}
],
@@ -347,7 +347,7 @@ var doc = `{
{
"type": "string",
"description": "用户上传头像",
"name": "userName",
"name": "username",
"in": "formData",
"required": true
}
@@ -364,16 +364,16 @@ var doc = `{
}
},
"definitions": {
"api.ChangePassWordStutrc": {
"api.ChangePasswordStutrc": {
"type": "object",
"properties": {
"newPassWord": {
"newPassword": {
"type": "string"
},
"passWord": {
"password": {
"type": "string"
},
"userName": {
"username": {
"type": "string"
}
}
@@ -414,10 +414,10 @@ var doc = `{
"api.RegistAndLoginStuct": {
"type": "object",
"properties": {
"passWord": {
"password": {
"type": "string"
},
"userName": {
"username": {
"type": "string"
}
}

View File

@@ -227,7 +227,7 @@
}
}
},
"/user/changePassWord": {
"/user/changePassword": {
"post": {
"security": [
{
@@ -249,7 +249,7 @@
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/api.ChangePassWordStutrc"
"$ref": "#/definitions/api.ChangePasswordStutrc"
}
}
],
@@ -330,7 +330,7 @@
{
"type": "string",
"description": "用户上传头像",
"name": "userName",
"name": "username",
"in": "formData",
"required": true
}
@@ -347,16 +347,16 @@
}
},
"definitions": {
"api.ChangePassWordStutrc": {
"api.ChangePasswordStutrc": {
"type": "object",
"properties": {
"newPassWord": {
"newPassword": {
"type": "string"
},
"passWord": {
"password": {
"type": "string"
},
"userName": {
"username": {
"type": "string"
}
}
@@ -397,10 +397,10 @@
"api.RegistAndLoginStuct": {
"type": "object",
"properties": {
"passWord": {
"password": {
"type": "string"
},
"userName": {
"username": {
"type": "string"
}
}

View File

@@ -1,12 +1,12 @@
basePath: /
definitions:
api.ChangePassWordStutrc:
api.ChangePasswordStutrc:
properties:
newPassWord:
newPassword:
type: string
passWord:
password:
type: string
userName:
username:
type: string
type: object
api.CreateApiParams:
@@ -32,9 +32,9 @@ definitions:
type: object
api.RegistAndLoginStuct:
properties:
passWord:
password:
type: string
userName:
username:
type: string
type: object
modelInterface.PageInfo:
@@ -187,7 +187,7 @@ paths:
summary: 用户注册账号
tags:
- Base
/user/changePassWord:
/user/changePassword:
post:
parameters:
- description: 用户修改密码
@@ -195,7 +195,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/api.ChangePassWordStutrc'
$ref: '#/definitions/api.ChangePasswordStutrc'
type: object
produces:
- application/json
@@ -245,7 +245,7 @@ paths:
type: file
- description: 用户上传头像
in: formData
name: userName
name: username
required: true
type: string
produces: