From 85666a4540c01851bc5881f269fe957e0583cecd Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 12 Aug 2022 08:20:02 +0000 Subject: [PATCH] bug fixed --- build.rs | 2 + proto/c2se/backend/member_class.proto | 2 +- proto/c2se/backend/member_level.proto | 6 +- proto/ss/member/member_class.proto | 88 ++++++++++++++++++++++++++ proto/ss/member/member_level.proto | 89 +++++++++++++++++++++++++++ 5 files changed, 183 insertions(+), 4 deletions(-) create mode 100644 proto/ss/member/member_class.proto create mode 100644 proto/ss/member/member_level.proto diff --git a/build.rs b/build.rs index ec3f3ca..035daaa 100644 --- a/build.rs +++ b/build.rs @@ -70,6 +70,8 @@ static TARGETS: Lazy>> = Lazy::new(|| { "./proto/ss/domain/site.proto", "./proto/ss/member/identity.proto", "./proto/ss/member/member.proto", + "./proto/ss/member/member_class.proto", + "./proto/ss/member/member_level.proto", "./proto/ss/account/bank.proto", ], ); diff --git a/proto/c2se/backend/member_class.proto b/proto/c2se/backend/member_class.proto index 14684d4..3e02466 100644 --- a/proto/c2se/backend/member_class.proto +++ b/proto/c2se/backend/member_class.proto @@ -29,7 +29,7 @@ message ListMemberClassesRequest { optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Search searches = 2; repeated bet.protobuf.pagination.Sort sorts = 3; - optional string name_like = 8; + optional string name_like = 4; } message ListMemberClasssResponse { diff --git a/proto/c2se/backend/member_level.proto b/proto/c2se/backend/member_level.proto index 12946de..2398d51 100644 --- a/proto/c2se/backend/member_level.proto +++ b/proto/c2se/backend/member_level.proto @@ -12,8 +12,8 @@ import "models/member/member_level.proto"; // subject = bet.beteran.c2se.backend.member_level.CreateMemberLevel message CreateMemberLevelRequest { - string name = 2; - uint32 sort_order = 3; + string name = 1; + uint32 sort_order = 2; } message CreateMemberLevelResponse { @@ -29,7 +29,7 @@ message ListMemberLevelesRequest { optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Search searches = 2; repeated bet.protobuf.pagination.Sort sorts = 3; - optional string name_like = 8; + optional string name_like = 4; } message ListMemberLevelsResponse { diff --git a/proto/ss/member/member_class.proto b/proto/ss/member/member_class.proto new file mode 100644 index 0000000..80e11a9 --- /dev/null +++ b/proto/ss/member/member_class.proto @@ -0,0 +1,88 @@ +syntax = "proto3"; + +package bet.beteran.ss.member_class; + +import "protobuf/rpc/error.proto"; +import "protobuf/pagination/pagination.proto"; +import "protobuf/pagination/search.proto"; +import "protobuf/pagination/sort.proto"; +import "models/core/network.proto"; + +import "models/member/member_class.proto"; + +// subject = bet.beteran.ss.member_class.CreateMemberClass +message CreateMemberClassRequest { + bet.beteran.core.network.Client client = 1; + optional string parent_id = 2; + string name = 3; +} + +message CreateMemberClassResponse { + message Result { + bet.beteran.member.MemberClass member_class = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_class.ListMemberClasses +message ListMemberClassesRequest { + bet.beteran.core.network.Client client = 1; + optional bet.protobuf.pagination.Pagination pagination = 2; + repeated bet.protobuf.pagination.Search searches = 3; + repeated bet.protobuf.pagination.Sort sorts = 4; + optional string name_like = 5; +} + +message ListMemberClasssResponse { + message Result { + repeated bet.beteran.member.MemberClass member_classes = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + + + +// subject = bet.beteran.ss.member_class.GetMemberClass +message GetMemberClassRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; +} + +message GetMemberClassResponse { + message Result { + bet.beteran.member.MemberClass member_class = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_class.UpdateMemberClass +message UpdateMemberClassRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; + optional string parent_id = 3; + string name = 4; +} + +message UpdateMemberClassResponse { + message Result { + bet.beteran.member.MemberClass member_class = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_class.DeleteMemberClass +message DeleteMemberClassRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; +} + +message DeleteMemberClassResponse { + message Result { + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} diff --git a/proto/ss/member/member_level.proto b/proto/ss/member/member_level.proto new file mode 100644 index 0000000..6f0e806 --- /dev/null +++ b/proto/ss/member/member_level.proto @@ -0,0 +1,89 @@ +syntax = "proto3"; + +package bet.beteran.ss.member_level; + +import "protobuf/rpc/error.proto"; +import "protobuf/pagination/pagination.proto"; +import "protobuf/pagination/search.proto"; +import "protobuf/pagination/sort.proto"; +import "models/core/network.proto"; + +import "models/member/member_level.proto"; + + +// subject = bet.beteran.ss.member_level.CreateMemberLevel +message CreateMemberLevelRequest { + bet.beteran.core.network.Client client = 1; + string name = 2; + uint32 sort_order = 3; +} + +message CreateMemberLevelResponse { + message Result { + bet.beteran.member.MemberLevel member_level = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_level.ListMemberLeveles +message ListMemberLevelesRequest { + bet.beteran.core.network.Client client = 1; + optional bet.protobuf.pagination.Pagination pagination = 2; + repeated bet.protobuf.pagination.Search searches = 3; + repeated bet.protobuf.pagination.Sort sorts = 4; + optional string name_like = 5; +} + +message ListMemberLevelsResponse { + message Result { + repeated bet.beteran.member.MemberLevel member_levels = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + + + +// subject = bet.beteran.ss.member_level.GetMemberLevel +message GetMemberLevelRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; +} + +message GetMemberLevelResponse { + message Result { + bet.beteran.member.MemberLevel member_level = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_level.UpdateMemberLevel +message UpdateMemberLevelRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; + optional string parent_id = 3; + string name = 4; +} + +message UpdateMemberLevelResponse { + message Result { + bet.beteran.member.MemberLevel member_level = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + +// subject = bet.beteran.ss.member_level.DeleteMemberLevel +message DeleteMemberLevelRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; +} + +message DeleteMemberLevelResponse { + message Result { + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +}