feat 网关鉴权
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
"application/json"
|
||||
],
|
||||
"paths": {
|
||||
"/user/login": {
|
||||
"/user/info": {
|
||||
"post": {
|
||||
"operationId": "User_Login",
|
||||
"operationId": "User_GetUserInfo",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/LoginResp"
|
||||
"$ref": "#/definitions/GetUserInfoResp"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
@@ -39,7 +39,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/LoginReq"
|
||||
"$ref": "#/definitions/GetUserInfoReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -50,26 +50,38 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"LoginReq": {
|
||||
"GetUserInfoReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"phone": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"title": "手机号"
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetUserInfoResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"code": {
|
||||
"type": "string",
|
||||
"title": "验证码"
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"LoginResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uid": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "用户ID"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"title": "用户名"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user