responses are modified

This commit is contained in:
병준 박 2022-08-03 06:52:17 +00:00
parent 1f977bb45d
commit d4171eb5d2
5 changed files with 14 additions and 34 deletions

View File

@ -2,8 +2,6 @@ syntax = "proto3";
package bet.beteran.c2se.backend.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.backend.identity.Signin
message SigninRequest {
string token = 1;
@ -13,7 +11,6 @@ message SigninRequest {
}
message SigninResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string session_id = 2;
string session_id = 1;
}

View File

@ -2,7 +2,6 @@ syntax = "proto3";
package bet.beteran.c2se.backend.member;
import "protobuf/rpc/error.proto";
import "protobuf/pagination/pagination.proto";
import "protobuf/pagination/search.proto";
import "protobuf/pagination/sort.proto";
@ -18,8 +17,7 @@ message ListMembersRequest {
}
message ListMembersResponse {
optional bet.protobuf.rpc.Error error = 1;
repeated bet.beteran.member.Member members = 2;
repeated bet.beteran.member.Member members = 1;
}
// subject = bet.beteran.c2se.backend.member.GetMember
@ -28,8 +26,7 @@ message GetMemberRequest {
}
message GetMemberResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bet.beteran.member.Member member = 2;
bet.beteran.member.Member member = 1;
}
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
@ -38,6 +35,5 @@ message GetMemberByUsernameRequest {
}
message GetMemberByUsernameResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bet.beteran.member.Member member = 2;
bet.beteran.member.Member member = 1;
}

View File

@ -2,16 +2,13 @@ syntax = "proto3";
package bet.beteran.c2se.common.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
message CheckUsernameForDuplicationRequest {
string username = 1;
}
message CheckUsernameForDuplicationResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bool duplicated = 2;
bool duplicated = 1;
}
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
@ -20,8 +17,7 @@ message CheckNicknameForDuplicationRequest {
}
message CheckNicknameForDuplicationResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bool duplicated = 2;
bool duplicated = 1;
}
@ -30,7 +26,6 @@ message CaptchaRequest {
}
message CaptchaResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string token = 2;
optional string image = 3;
string token = 1;
string image = 2;
}

View File

@ -2,8 +2,6 @@ syntax = "proto3";
package bet.beteran.c2se.frontend.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.frontend.identity.Signin
message SigninRequest {
string token = 1;
@ -13,6 +11,5 @@ message SigninRequest {
}
message SigninResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string session_id = 2;
string session_id = 1;
}

View File

@ -2,7 +2,6 @@ syntax = "proto3";
package bet.beteran.ss.member.identity;
import "protobuf/rpc/error.proto";
import "models/core/network.proto";
@ -13,8 +12,7 @@ message CheckUsernameForDuplicationRequest {
}
message CheckUsernameForDuplicationResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bool duplicated = 2;
bool duplicated = 1;
}
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
@ -24,8 +22,7 @@ message CheckNicknameForDuplicationRequest {
}
message CheckNicknameForDuplicationResponse {
optional bet.protobuf.rpc.Error error = 1;
optional bool duplicated = 2;
bool duplicated = 1;
}
// subject = bet.beteran.ss.member.identity.Captcha
@ -34,9 +31,8 @@ message CaptchaRequest {
}
message CaptchaResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string token = 2;
optional string image = 3;
string token = 1;
string image = 2;
}
@ -50,6 +46,5 @@ message SigninRequest {
}
message SigninResponse {
optional bet.protobuf.rpc.Error error = 1;
optional string session_id = 2;
string session_id = 1;
}