发送授权码改为 anonymous 权限
This commit is contained in:
9
src/anonymous/v1/service.proto
Normal file
9
src/anonymous/v1/service.proto
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package anonymous.v1;
|
||||||
|
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1";
|
||||||
|
|
||||||
|
import "anonymous/v1/user.proto";
|
||||||
|
|
||||||
|
service AnonymousService {
|
||||||
|
rpc SendCredential(SendCredentialRequest) returns (SendCredentialResponse);
|
||||||
|
}
|
||||||
12
src/anonymous/v1/user.proto
Normal file
12
src/anonymous/v1/user.proto
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package anonymous.v1;
|
||||||
|
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/anonymous/v1;anonymousv1";
|
||||||
|
|
||||||
|
import "enums/v1/user.proto";
|
||||||
|
|
||||||
|
message SendCredentialRequest {
|
||||||
|
enums.v1.AuthenticationType auth_type = 1; // 认证类型
|
||||||
|
string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息
|
||||||
|
}
|
||||||
|
|
||||||
|
message SendCredentialResponse {}
|
||||||
@@ -5,7 +5,6 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1";
|
|||||||
import "user/v1/user.proto";
|
import "user/v1/user.proto";
|
||||||
|
|
||||||
service UserService {
|
service UserService {
|
||||||
rpc SendCredential(SendCredentialRequest) returns (SendCredentialResponse);
|
|
||||||
rpc Auth(AuthRequest) returns (AuthResponse);
|
rpc Auth(AuthRequest) returns (AuthResponse);
|
||||||
rpc SetPassword(SetPasswordRequest) returns (SetPasswordResponse);
|
rpc SetPassword(SetPasswordRequest) returns (SetPasswordResponse);
|
||||||
rpc SetName(SetNameRequest) returns (SetNameResponse);
|
rpc SetName(SetNameRequest) returns (SetNameResponse);
|
||||||
|
|||||||
@@ -4,13 +4,6 @@ option go_package = "git.shenxianhe.cn/shenxianhe/sdk/user/v1;userv1";
|
|||||||
|
|
||||||
import "enums/v1/user.proto";
|
import "enums/v1/user.proto";
|
||||||
|
|
||||||
message SendCredentialRequest {
|
|
||||||
enums.v1.AuthenticationType auth_type = 1; // 认证类型
|
|
||||||
string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息
|
|
||||||
}
|
|
||||||
|
|
||||||
message SendCredentialResponse {}
|
|
||||||
|
|
||||||
message AuthRequest {
|
message AuthRequest {
|
||||||
enums.v1.AuthenticationType auth_type = 1; // 认证类型
|
enums.v1.AuthenticationType auth_type = 1; // 认证类型
|
||||||
string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息
|
string auth_id = 2; // 认证ID,根据auth_type存储不同的账号信息
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.6.0
|
1.7.0
|
||||||
|
|||||||
Reference in New Issue
Block a user