From 53c602237b0e6ffe02f06fb1eb00a2eb6d53626c Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 7 Sep 2025 17:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E6=9D=83=E6=8E=A5=E5=8F=A3=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20anonymous=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/anonymous/v1/service.proto | 1 + src/anonymous/v1/user.proto | 9 +++++++++ src/user/v1/service.proto | 1 - src/user/v1/user.proto | 9 --------- version.txt | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/anonymous/v1/service.proto b/src/anonymous/v1/service.proto index 0554322..9779413 100644 --- a/src/anonymous/v1/service.proto +++ b/src/anonymous/v1/service.proto @@ -5,5 +5,6 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1"; import "anonymous/v1/user.proto"; service AnonymousService { + rpc Auth(AuthRequest) returns (AuthResponse); rpc SendCredential(SendCredentialRequest) returns (SendCredentialResponse); } \ No newline at end of file diff --git a/src/anonymous/v1/user.proto b/src/anonymous/v1/user.proto index d4f8dec..171696d 100644 --- a/src/anonymous/v1/user.proto +++ b/src/anonymous/v1/user.proto @@ -4,6 +4,15 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1"; import "enums/v1/user.proto"; +message AuthRequest { + enums.v1.AuthenticationType auth_type = 1; // 认证类型 + string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息 + string credential = 3; // 凭证,可以是验证码或密码 + string invitation_code = 4; // 邀请码 +} + +message AuthResponse { string token = 1; } + message SendCredentialRequest { enums.v1.AuthenticationType auth_type = 1; // 认证类型 string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息 diff --git a/src/user/v1/service.proto b/src/user/v1/service.proto index e9bebd9..ab5f5af 100644 --- a/src/user/v1/service.proto +++ b/src/user/v1/service.proto @@ -5,7 +5,6 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1"; import "user/v1/user.proto"; service UserService { - rpc Auth(AuthRequest) returns (AuthResponse); rpc SetPassword(SetPasswordRequest) returns (SetPasswordResponse); rpc SetName(SetNameRequest) returns (SetNameResponse); rpc GetAvatarUploadURL(GetAvatarUploadURLRequest) diff --git a/src/user/v1/user.proto b/src/user/v1/user.proto index 5598870..59de8d7 100644 --- a/src/user/v1/user.proto +++ b/src/user/v1/user.proto @@ -4,15 +4,6 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1"; import "enums/v1/user.proto"; -message AuthRequest { - enums.v1.AuthenticationType auth_type = 1; // 认证类型 - string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息 - string credential = 3; // 凭证,可以是验证码或密码 - string invitation_code = 4; // 邀请码 -} - -message AuthResponse { string token = 1; } - message SetPasswordRequest { enums.v1.AuthenticationType auth_type = 1; // 认证类型 string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息 diff --git a/version.txt b/version.txt index bd8bf88..27f9cd3 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.7.0 +1.8.0