beteran-protobuf/proto/c2se/member_level.proto

78 lines
1.6 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.c2se.member_level;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_level.proto";
message CreateMemberLevelRequest {
string name = 1;
2022-08-14 15:08:04 +00:00
bool show = 2;
uint32 sort_order = 3;
2022-08-13 20:18:21 +00:00
}
message CreateMemberLevelResponse {
message Result {
bet.beteran.member_level.MemberLevel member_level = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListMemberLevelsRequest {
message Search {
optional string name_like = 1;
2022-08-14 15:08:04 +00:00
optional bool show = 2;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListMemberLevelsResponse {
message Result {
repeated bet.beteran.member_level.MemberLevel member_levels = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message GetMemberLevelRequest {
string id = 1;
}
message GetMemberLevelResponse {
message Result {
bet.beteran.member_level.MemberLevel member_level = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberLevelRequest {
string id = 1;
string name = 2;
2022-08-14 15:08:04 +00:00
bool show = 3;
uint32 sort_order = 4;
2022-08-13 20:18:21 +00:00
}
message UpdateMemberLevelResponse {
message Result {
bet.beteran.member_level.MemberLevel member_level = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberLevelRequest {
string id = 1;
}
message DeleteMemberLevelResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}