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 ListMemberClassesResponse { 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; }