username password
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user