From d4171eb5d2b67fd914d4acce5ae56b2604ec9ee6 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Wed, 3 Aug 2022 06:52:17 +0000 Subject: [PATCH] responses are modified --- proto/c2se/backend/identity.proto | 5 +---- proto/c2se/backend/member.proto | 10 +++------- proto/c2se/common/identity.proto | 13 ++++--------- proto/c2se/frontend/identity.proto | 5 +---- proto/ss/member/identity.proto | 15 +++++---------- 5 files changed, 14 insertions(+), 34 deletions(-) diff --git a/proto/c2se/backend/identity.proto b/proto/c2se/backend/identity.proto index 7d72f8c..164e87a 100644 --- a/proto/c2se/backend/identity.proto +++ b/proto/c2se/backend/identity.proto @@ -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; } diff --git a/proto/c2se/backend/member.proto b/proto/c2se/backend/member.proto index 37c66d3..6b738e7 100644 --- a/proto/c2se/backend/member.proto +++ b/proto/c2se/backend/member.proto @@ -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; } diff --git a/proto/c2se/common/identity.proto b/proto/c2se/common/identity.proto index 1c8b54d..6f4684a 100644 --- a/proto/c2se/common/identity.proto +++ b/proto/c2se/common/identity.proto @@ -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; } diff --git a/proto/c2se/frontend/identity.proto b/proto/c2se/frontend/identity.proto index 46697d9..2b1127a 100644 --- a/proto/c2se/frontend/identity.proto +++ b/proto/c2se/frontend/identity.proto @@ -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; } diff --git a/proto/ss/member/identity.proto b/proto/ss/member/identity.proto index 7342033..49177d4 100644 --- a/proto/ss/member/identity.proto +++ b/proto/ss/member/identity.proto @@ -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; }