bug fixed

This commit is contained in:
병준 박 2022-08-12 08:20:02 +00:00
parent dd38aff481
commit 85666a4540
5 changed files with 183 additions and 4 deletions

View File

@ -70,6 +70,8 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = 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",
],
);

View File

@ -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 {

View File

@ -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 {

View File

@ -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;
}

View File

@ -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;
}