Files
proto/src/corestack/anonymous/v1/user.proto

21 lines
732 B
Protocol Buffer
Raw Normal View History

2025-09-07 17:03:31 +08:00
syntax = "proto3";
2025-09-07 20:42:11 +08:00
package corestack.anonymous.v1;
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/corestack/anonymous/v1;anonymousv1";
2025-09-07 17:03:31 +08:00
2025-09-07 20:42:11 +08:00
import "corestack/enums/v1/user.proto";
2025-09-07 17:03:31 +08:00
2025-09-07 17:10:44 +08:00
message AuthRequest {
2025-09-07 20:42:11 +08:00
corestack.enums.v1.AuthenticationType auth_type = 1; // 认证类型
2025-09-07 17:10:44 +08:00
string auth_id = 2; // 认证ID根据auth_type存储不同的账号信息
string credential = 3; // 凭证,可以是验证码或密码
string invitation_code = 4; // 邀请码
}
message AuthResponse { string token = 1; }
2025-09-07 17:03:31 +08:00
message SendCredentialRequest {
enums.v1.AuthenticationType auth_type = 1; // 认证类型
string auth_id = 2; // 认证ID根据auth_type存储不同的账号信息
}
message SendCredentialResponse {}