beteran-protobuf/proto/c2se/member_class.proto

79 lines
1.7 KiB
Protocol Buffer

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;
bool show = 3;
}
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 {
optional string name_like = 1;
optional bool show = 2;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListMemberClassesResponse {
message Result {
uint64 total_count = 1;
repeated bet.beteran.member_class.MemberClass member_classes = 2;
}
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;
bool show = 4;
}
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;
}