beteran-protobuf/proto/c2se/member_class.proto

79 lines
1.7 KiB
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.c2se.member_class;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_class.proto";
message CreateMemberClassRequest {
optional string parent_id = 1;
string name = 2;
2022-08-14 15:08:04 +00:00
bool show = 3;
2022-08-13 20:18:21 +00:00
}
message CreateMemberClassResponse {
message Result {
bet.beteran.member_class.MemberClass member_class = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListMemberClassesRequest {
message Search {
2022-08-14 15:08:04 +00:00
optional string name_like = 1;
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 ListMemberClassesResponse {
message Result {
2022-09-01 17:17:19 +00:00
uint64 total_count = 1;
repeated bet.beteran.member_class.MemberClass member_classes = 2;
2022-08-13 20:18:21 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message GetMemberClassRequest {
string id = 1;
}
message GetMemberClassResponse {
message Result {
bet.beteran.member_class.MemberClass member_class = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberClassRequest {
string id = 1;
optional string parent_id = 2;
string name = 3;
2022-08-14 15:08:04 +00:00
bool show = 4;
2022-08-13 20:18:21 +00:00
}
message UpdateMemberClassResponse {
message Result {
bet.beteran.member_class.MemberClass member_class = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberClassRequest {
string id = 1;
}
message DeleteMemberClassResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}