From 4029426e6f1b6967c7f75a5932535823fbfa912f Mon Sep 17 00:00:00 2001 From: "huangsimin@fusen.cn" Date: Wed, 10 Jan 2024 10:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/auth.proto | 95 +--------------------------------------------- 1 file changed, 2 insertions(+), 93 deletions(-) diff --git a/service/auth.proto b/service/auth.proto index 4198200..4a70c86 100644 --- a/service/auth.proto +++ b/service/auth.proto @@ -16,102 +16,11 @@ service auth { // 登录接口 rpc ValidToken(ValidTokenRequest) returns (ValidTokenResponse) {} - // 登录接口 - rpc Login(UserLoginRequest) returns (UserLoginResponse) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/login" - body: "*" - }; - } - - // 注册接口 - rpc Register(UserRegisterRequest) returns (basic.Response) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/register" - body: "*" - }; - } - // Cookie 接受接口 - rpc AcceptCookie(basic.Request) returns (GuestResponse) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/accept-cookie" - body: "*" - }; - } + rpc CreateAcceptCookie(basic.Request) returns (GuestResponse) {} // 调试令牌创建接口 - rpc CreateDebugToken(UserDebugRequest) returns (DebugTokenResponse) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/debug/token/create" - body: "*" - }; - } - - // Google 登录接口 - rpc GoogleLogin(GoogleLoginRequest) returns (basic.Response) { - // 添加 HTTP GET 网关注解 - option (google.api.http) = { - get: "/api/auth/oauth2/login/google" - }; - } - - // 邮箱确认接口 - rpc EmailConfirmation(EmailConfirmationRequest) returns (basic.Response) { - // 添加 HTTP GET 网关注解 - option (google.api.http) = { - post: "/api/auth/email/confirmation" - body: "*" - }; - } - - // 使用邮箱注册接口 - rpc EmailRegister(EmailRegisterRequest) returns (basic.Response) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/oauth2/register" - body: "*" - }; - } - - // 发送重置令牌到邮箱接口 - rpc ResetToken(UserResetTokenRequest) returns (basic.Response) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/reset/token" - body: "*" - }; - } - - // 重置密码接口 - rpc ResetPassword(UserResetPasswordRequest) returns (basic.Response) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/reset/password" - body: "*" - }; - } - - // 获取重定向到 HTML 页面接口 - rpc ResetPasswordHtml(UserResetHtmlRequest) returns (basic.Response) { - // 添加 HTTP GET 网关注解 - option (google.api.http) = { - get: "/api/auth/reset/password/html" - }; - } - - // 调试删除帐号接口 - rpc DebugDelete(AuthDeleteRequest) returns (basic.Response) { - // 添加 HTTP POST 网关注解 - option (google.api.http) = { - post: "/api/auth/debug/delete" - body: "*" - }; - } + rpc CreateDebugToken(UserDebugRequest) returns (DebugTokenResponse) {} }