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 {
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,8 +18,12 @@ message ListMembersRequest {
}
message ListMembersResponse {
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
message GetMemberRequest {
@ -26,8 +31,12 @@ message GetMemberRequest {
}
message GetMemberResponse {
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
message GetMemberByUsernameRequest {
@ -35,5 +44,9 @@ message GetMemberByUsernameRequest {
}
message GetMemberByUsernameResponse {
message Result {
bet.beteran.member.Member member = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

@ -2,14 +2,20 @@ 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 {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
message CheckNicknameForDuplicationRequest {
@ -17,8 +23,12 @@ message CheckNicknameForDuplicationRequest {
}
message CheckNicknameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.Captcha
@ -26,6 +36,10 @@ message CaptchaRequest {
}
message CaptchaResponse {
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 {
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,8 +13,12 @@ message CheckUsernameForDuplicationRequest {
}
message CheckUsernameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
message CheckNicknameForDuplicationRequest {
@ -22,8 +27,12 @@ message CheckNicknameForDuplicationRequest {
}
message CheckNicknameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member.identity.Captcha
message CaptchaRequest {
@ -31,9 +40,13 @@ message CaptchaRequest {
}
message CaptchaResponse {
message Result {
string token = 1;
string image = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member.identity.Signin
@ -46,5 +59,9 @@ message SigninRequest {
}
message SigninResponse {
message Result {
string session_id = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}