syntax = "proto3"; package bet.beteran.ss.member_class; import "models/core/network.proto"; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member_class.proto"; // subject = bet.beteran.ss.member_class.CreateMemberClass message CreateMemberClassRequest { message Request { optional string parent_id = 1; string name = 2; } bet.beteran.core.network.Client client = 1; Request request = 2; } message CreateMemberClassResponse { message Result { bet.beteran.member_class.MemberClass member_class = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_class.ListMemberClasses message ListMemberClassesRequest { message Request { message Search { optional string name_like = 1; } optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Sort sorts = 2; optional Search search = 3; } bet.beteran.core.network.Client client = 1; Request request = 2; } message ListMemberClassesResponse { message Result { repeated bet.beteran.member_class.MemberClass member_classes = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_class.GetMemberClass message GetMemberClassRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message GetMemberClassResponse { message Result { bet.beteran.member_class.MemberClass member_class = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_class.UpdateMemberClass message UpdateMemberClassRequest { message Request { string id = 1; optional string parent_id = 2; string name = 3; } bet.beteran.core.network.Client client = 1; Request request = 2; } message UpdateMemberClassResponse { message Result { bet.beteran.member_class.MemberClass member_class = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.ss.member_class.DeleteMemberClass message DeleteMemberClassRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message DeleteMemberClassResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }