75 lines
1.6 KiB
Protocol Buffer
75 lines
1.6 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;
|
||
|
}
|
||
|
|
||
|
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 = 4;
|
||
|
}
|
||
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
||
|
repeated bet.protobuf.pagination.Sort sorts = 2;
|
||
|
optional Search search = 3;
|
||
|
}
|
||
|
|
||
|
message ListMemberClassesResponse {
|
||
|
message Result {
|
||
|
repeated bet.beteran.member_class.MemberClass member_classes = 1;
|
||
|
}
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|