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; 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;
@ -11,6 +13,10 @@ message SigninRequest {
} }
message SigninResponse { message SigninResponse {
message Result {
string session_id = 1; 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; 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";
@ -17,8 +18,12 @@ message ListMembersRequest {
} }
message ListMembersResponse { message ListMembersResponse {
message Result {
repeated bet.beteran.member.Member members = 1; 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 // subject = bet.beteran.c2se.backend.member.GetMember
message GetMemberRequest { message GetMemberRequest {
@ -26,8 +31,12 @@ message GetMemberRequest {
} }
message GetMemberResponse { message GetMemberResponse {
message Result {
bet.beteran.member.Member member = 1; bet.beteran.member.Member member = 1;
} }
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername // subject = bet.beteran.c2se.backend.member.GetMemberByUsername
message GetMemberByUsernameRequest { message GetMemberByUsernameRequest {
@ -35,5 +44,9 @@ message GetMemberByUsernameRequest {
} }
message GetMemberByUsernameResponse { message GetMemberByUsernameResponse {
message Result {
bet.beteran.member.Member member = 1; 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; 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 {
message Result {
bool duplicated = 1; bool duplicated = 1;
} }
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication; // subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
message CheckNicknameForDuplicationRequest { message CheckNicknameForDuplicationRequest {
@ -17,8 +23,12 @@ message CheckNicknameForDuplicationRequest {
} }
message CheckNicknameForDuplicationResponse { message CheckNicknameForDuplicationResponse {
message Result {
bool duplicated = 1; bool duplicated = 1;
} }
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.Captcha // subject = bet.beteran.c2se.common.identity.Captcha
@ -26,6 +36,10 @@ message CaptchaRequest {
} }
message CaptchaResponse { message CaptchaResponse {
message Result {
string token = 1; string token = 1;
string image = 2; 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 // header = bet.beteran.c2se.core.network.Client

View File

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