client info is added
This commit is contained in:
parent
abf0478dac
commit
2dbaead2fa
3
build.rs
3
build.rs
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
1
proto/c2se/core/network.proto
Normal file
1
proto/c2se/core/network.proto
Normal file
|
@ -0,0 +1 @@
|
|||
// header = bet.beteran.c2se.core.network.Client
|
|
@ -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;
|
||||
|
|
9
proto/models/core/network.proto
Normal file
9
proto/models/core/network.proto
Normal 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;
|
||||
}
|
30
proto/ss/member/identity.proto
Normal file
30
proto/ss/member/identity.proto
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user