From 2fd470efa11020b0c2e733b37f7878923d0e0875 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 11 Aug 2023 19:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- t.yaml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 t.yaml diff --git a/.gitignore b/.gitignore index 460972d..7a74866 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ __debug_* fusenrender -example-data \ No newline at end of file +example-data + +*.json \ No newline at end of file diff --git a/t.yaml b/t.yaml new file mode 100644 index 0000000..83775e4 --- /dev/null +++ b/t.yaml @@ -0,0 +1,63 @@ +swagger: "2.0" +info: + title: Auth API + version: 1.0.0 + description: 用户认证接口 + +paths: + + /api/auth/email/confirmation: + get: + summary: 邮箱确认 + parameters: + - name: token + in: query + type: string + required: true + description: 操作token + responses: + 200: + description: 确认成功 + + /api/auth/oauth2/register: + get: + summary: 邮箱注册 + parameters: + - name: body + in: body + required: true + schema: + $ref: '#/definitions/EmailRegisterRequest' + responses: + 200: + description: 注册成功 + schema: + $ref: '#/definitions/AuthResponse' + +definitions: + + EmailRegisterRequest: + type: object + required: + - email + - wcid + - guest_id + - register_token + properties: + email: + type: string + wcid: + type: integer + format: uint64 + guest_id: + type: integer + format: uint64 + register_token: + type: string + + AuthResponse: + type: object + properties: + token: + type: string + description: 注册登录生成的JWT token \ No newline at end of file