feat 网关鉴权

This commit is contained in:
2025-12-22 18:04:36 +08:00
parent 69cc960fe5
commit 670140e7d3
68 changed files with 1424 additions and 492 deletions

View File

@@ -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": "用户名"
}
}
},