responses are modified
This commit is contained in:
parent
1f977bb45d
commit
d4171eb5d2
|
@ -2,8 +2,6 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.c2se.backend.identity;
|
package bet.beteran.c2se.backend.identity;
|
||||||
|
|
||||||
import "protobuf/rpc/error.proto";
|
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.backend.identity.Signin
|
// subject = bet.beteran.c2se.backend.identity.Signin
|
||||||
message SigninRequest {
|
message SigninRequest {
|
||||||
string token = 1;
|
string token = 1;
|
||||||
|
@ -13,7 +11,6 @@ message SigninRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message SigninResponse {
|
message SigninResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
string session_id = 1;
|
||||||
optional string session_id = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.c2se.backend.member;
|
package bet.beteran.c2se.backend.member;
|
||||||
|
|
||||||
import "protobuf/rpc/error.proto";
|
|
||||||
import "protobuf/pagination/pagination.proto";
|
import "protobuf/pagination/pagination.proto";
|
||||||
import "protobuf/pagination/search.proto";
|
import "protobuf/pagination/search.proto";
|
||||||
import "protobuf/pagination/sort.proto";
|
import "protobuf/pagination/sort.proto";
|
||||||
|
@ -18,8 +17,7 @@ message ListMembersRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListMembersResponse {
|
message ListMembersResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
repeated bet.beteran.member.Member members = 1;
|
||||||
repeated bet.beteran.member.Member members = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.backend.member.GetMember
|
// subject = bet.beteran.c2se.backend.member.GetMember
|
||||||
|
@ -28,8 +26,7 @@ message GetMemberRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetMemberResponse {
|
message GetMemberResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bet.beteran.member.Member member = 1;
|
||||||
optional bet.beteran.member.Member member = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
|
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
|
||||||
|
@ -38,6 +35,5 @@ message GetMemberByUsernameRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetMemberByUsernameResponse {
|
message GetMemberByUsernameResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bet.beteran.member.Member member = 1;
|
||||||
optional bet.beteran.member.Member member = 2;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,16 +2,13 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.c2se.common.identity;
|
package bet.beteran.c2se.common.identity;
|
||||||
|
|
||||||
import "protobuf/rpc/error.proto";
|
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
|
// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
|
||||||
message CheckUsernameForDuplicationRequest {
|
message CheckUsernameForDuplicationRequest {
|
||||||
string username = 1;
|
string username = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CheckUsernameForDuplicationResponse {
|
message CheckUsernameForDuplicationResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bool duplicated = 1;
|
||||||
optional bool duplicated = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
|
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
|
||||||
|
@ -20,8 +17,7 @@ message CheckNicknameForDuplicationRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CheckNicknameForDuplicationResponse {
|
message CheckNicknameForDuplicationResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bool duplicated = 1;
|
||||||
optional bool duplicated = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +26,6 @@ message CaptchaRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CaptchaResponse {
|
message CaptchaResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
string token = 1;
|
||||||
optional string token = 2;
|
string image = 2;
|
||||||
optional string image = 3;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.c2se.frontend.identity;
|
package bet.beteran.c2se.frontend.identity;
|
||||||
|
|
||||||
import "protobuf/rpc/error.proto";
|
|
||||||
|
|
||||||
// subject = bet.beteran.c2se.frontend.identity.Signin
|
// subject = bet.beteran.c2se.frontend.identity.Signin
|
||||||
message SigninRequest {
|
message SigninRequest {
|
||||||
string token = 1;
|
string token = 1;
|
||||||
|
@ -13,6 +11,5 @@ message SigninRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message SigninResponse {
|
message SigninResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
string session_id = 1;
|
||||||
optional string session_id = 2;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ syntax = "proto3";
|
||||||
|
|
||||||
package bet.beteran.ss.member.identity;
|
package bet.beteran.ss.member.identity;
|
||||||
|
|
||||||
import "protobuf/rpc/error.proto";
|
|
||||||
import "models/core/network.proto";
|
import "models/core/network.proto";
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,8 +12,7 @@ message CheckUsernameForDuplicationRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CheckUsernameForDuplicationResponse {
|
message CheckUsernameForDuplicationResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bool duplicated = 1;
|
||||||
optional bool duplicated = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
|
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
|
||||||
|
@ -24,8 +22,7 @@ message CheckNicknameForDuplicationRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CheckNicknameForDuplicationResponse {
|
message CheckNicknameForDuplicationResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
bool duplicated = 1;
|
||||||
optional bool duplicated = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// subject = bet.beteran.ss.member.identity.Captcha
|
// subject = bet.beteran.ss.member.identity.Captcha
|
||||||
|
@ -34,9 +31,8 @@ message CaptchaRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CaptchaResponse {
|
message CaptchaResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
string token = 1;
|
||||||
optional string token = 2;
|
string image = 2;
|
||||||
optional string image = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,6 +46,5 @@ message SigninRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message SigninResponse {
|
message SigninResponse {
|
||||||
optional bet.protobuf.rpc.Error error = 1;
|
string session_id = 1;
|
||||||
optional string session_id = 2;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user