responses are modified

This commit is contained in:
병준 박 2022-08-03 07:31:10 +00:00
parent d4171eb5d2
commit dbbdd2d5f2
6 changed files with 74 additions and 14 deletions

View File

@ -2,6 +2,8 @@ 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;
@ -11,6 +13,10 @@ message SigninRequest {
}
message SigninResponse {
string session_id = 1;
message Result {
string session_id = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

@ -2,6 +2,7 @@ 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";
@ -17,7 +18,11 @@ message ListMembersRequest {
}
message ListMembersResponse {
repeated bet.beteran.member.Member members = 1;
message Result {
repeated bet.beteran.member.Member members = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.backend.member.GetMember
@ -26,7 +31,11 @@ message GetMemberRequest {
}
message GetMemberResponse {
bet.beteran.member.Member member = 1;
message Result {
bet.beteran.member.Member member = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
@ -35,5 +44,9 @@ message GetMemberByUsernameRequest {
}
message GetMemberByUsernameResponse {
bet.beteran.member.Member member = 1;
message Result {
bet.beteran.member.Member member = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

@ -2,13 +2,19 @@ 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 {
bool duplicated = 1;
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
@ -17,7 +23,11 @@ message CheckNicknameForDuplicationRequest {
}
message CheckNicknameForDuplicationResponse {
bool duplicated = 1;
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
@ -26,6 +36,10 @@ message CaptchaRequest {
}
message CaptchaResponse {
string token = 1;
string image = 2;
message Result {
string token = 1;
string image = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

@ -1 +1,5 @@
syntax = "proto3";
package bet.beteran.c2se.core.network;
// header = bet.beteran.c2se.core.network.Client

View File

@ -2,6 +2,8 @@ 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;
@ -11,5 +13,9 @@ message SigninRequest {
}
message SigninResponse {
string session_id = 1;
message Result {
string session_id = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

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