client info is added

This commit is contained in:
병준 박 2022-07-15 06:14:09 +00:00
parent abf0478dac
commit 2dbaead2fa
6 changed files with 62 additions and 0 deletions

View File

@ -34,6 +34,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
m.insert(
"models",
vec![
"./proto/models/core/network.proto",
"./proto/models/member/member_class.proto",
"./proto/models/member/member_level.proto",
"./proto/models/member/member_site.proto",
@ -50,6 +51,8 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
],
);
m.insert("ss", vec!["./proto/ss/member/identity.proto"]);
m
});

View File

@ -4,6 +4,15 @@ package bet.beteran.c2se.backend.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.backend.identity.Captcha
message CaptchaRequest {
}
message CaptchaResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string image = 2;
}
// subject = bet.beteran.c2se.backend.identity.Signin
message SigninRequest {
string username = 1;
@ -15,3 +24,4 @@ message SigninResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string token = 2;
}

View File

@ -0,0 +1 @@
// header = bet.beteran.c2se.core.network.Client

View File

@ -4,6 +4,15 @@ package bet.beteran.c2se.frontend.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.frontend.identity.Captcha
message CaptchaRequest {
}
message CaptchaResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string image = 2;
}
// subject = bet.beteran.c2se.frontend.identity.Signin
message SigninRequest {
string username = 1;

View File

@ -0,0 +1,9 @@
syntax = "proto3";
package bet.beteran.core.network;
message Client {
optional string site_url = 1;
uint64 client_id = 2;
string client_ip = 3;
}

View File

@ -0,0 +1,30 @@
syntax = "proto3";
package bet.beteran.ss.member.identity;
import "protobuf/rpc/error.proto";
import "models/core/network.proto";
// subject = bet.beteran.ss.member.identity.Captcha
message CaptchaRequest {
bet.beteran.core.network.Client client = 1;
}
message CaptchaResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string image = 2;
}
// subject = bet.beteran.ss.member.identity.Signin
message SigninRequest {
bet.beteran.core.network.Client client = 1;
string username = 2;
string password = 3;
string security_code = 4;
}
message SigninResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string token = 2;
}