beteran-protobuf/proto/ss/member_class.proto

106 lines
2.5 KiB
Protocol Buffer
Raw Normal View History

2022-08-12 08:20:02 +00:00
syntax = "proto3";
package bet.beteran.ss.member_class;
import "models/core/network.proto";
2022-08-13 20:18:21 +00:00
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_class.proto";
2022-08-12 08:20:02 +00:00
// subject = bet.beteran.ss.member_class.CreateMemberClass
message CreateMemberClassRequest {
2022-08-13 20:18:21 +00:00
message Request {
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
}
2022-08-12 08:20:02 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-08-12 08:20:02 +00:00
}
message CreateMemberClassResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_class.MemberClass member_class = 1;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member_class.ListMemberClasses
message ListMemberClassesRequest {
2022-08-13 20:18:21 +00:00
message Request {
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;
}
2022-08-12 08:20:02 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-08-12 08:20:02 +00:00
}
2022-08-12 08:52:46 +00:00
message ListMemberClassesResponse {
2022-08-12 08:20:02 +00:00
message Result {
2022-08-13 20:18:21 +00:00
repeated bet.beteran.member_class.MemberClass member_classes = 1;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member_class.GetMemberClass
message GetMemberClassRequest {
2022-08-13 20:18:21 +00:00
message Request {
string id = 1;
}
2022-08-12 08:20:02 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-08-12 08:20:02 +00:00
}
message GetMemberClassResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_class.MemberClass member_class = 1;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member_class.UpdateMemberClass
message UpdateMemberClassRequest {
2022-08-13 20:18:21 +00:00
message Request {
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
}
2022-08-12 08:20:02 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-08-12 08:20:02 +00:00
}
message UpdateMemberClassResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_class.MemberClass member_class = 1;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member_class.DeleteMemberClass
message DeleteMemberClassRequest {
2022-08-13 20:18:21 +00:00
message Request {
string id = 1;
}
2022-08-12 08:20:02 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-08-12 08:20:02 +00:00
}
message DeleteMemberClassResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}