beteran-protobuf/proto/ss/member_level.proto

105 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_level;
import "models/core/network.proto";
2022-08-13 20:18:21 +00:00
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_level.proto";
2022-08-12 08:20:02 +00:00
// subject = bet.beteran.ss.member_level.CreateMemberLevel
message CreateMemberLevelRequest {
2022-08-13 20:18:21 +00:00
message Request {
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
}
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 CreateMemberLevelResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_level.MemberLevel member_level = 1;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
2022-08-12 08:29:57 +00:00
// subject = bet.beteran.ss.member_level.ListMemberLevels
message ListMemberLevelsRequest {
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
}
message ListMemberLevelsResponse {
message Result {
2022-09-01 17:17:19 +00:00
uint64 total_count = 1;
repeated bet.beteran.member_level.MemberLevel member_levels = 2;
2022-08-12 08:20:02 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.member_level.GetMemberLevel
message GetMemberLevelRequest {
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 GetMemberLevelResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_level.MemberLevel member_level = 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_level.UpdateMemberLevel
message UpdateMemberLevelRequest {
2022-08-13 20:18:21 +00:00
message Request {
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
}
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 UpdateMemberLevelResponse {
message Result {
2022-08-13 20:18:21 +00:00
bet.beteran.member_level.MemberLevel member_level = 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_level.DeleteMemberLevel
message DeleteMemberLevelRequest {
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 DeleteMemberLevelResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}