syntax = "proto3"; package bet.beteran.c2se.backend.member_level; import "protobuf/rpc/error.proto"; import "protobuf/pagination/pagination.proto"; import "protobuf/pagination/search.proto"; import "protobuf/pagination/sort.proto"; import "models/member/member_level.proto"; // subject = bet.beteran.c2se.backend.member_level.CreateMemberLevel message CreateMemberLevelRequest { string name = 1; uint32 sort_order = 2; } 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.c2se.backend.member_level.ListMemberLevels message ListMemberLevelsRequest { 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 = 4; } 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.c2se.backend.member_level.GetMemberLevel message GetMemberLevelRequest { string id = 1; } 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.c2se.backend.member_level.UpdateMemberLevel message UpdateMemberLevelRequest { string id = 1; optional string parent_id = 2; string name = 3; } 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.c2se.backend.member_level.DeleteMemberLevel message DeleteMemberLevelRequest { string id = 1; } message DeleteMemberLevelResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }