beteran-protobuf/proto/c2se/backend/member_level.proto

84 lines
2.0 KiB
Protocol Buffer
Raw Normal View History

2022-08-12 08:07:43 +00:00
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 = 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.c2se.backend.member_level.ListMemberLeveles
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;
}
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;
}