101 lines
2.4 KiB
Protocol Buffer
101 lines
2.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bet.beteran.ss.member_level;
|
|
|
|
import "models/core/network.proto";
|
|
import "protobuf/rpc.proto";
|
|
import "protobuf/pagination.proto";
|
|
import "models/member_level.proto";
|
|
|
|
// subject = bet.beteran.ss.member_level.CreateMemberLevel
|
|
message CreateMemberLevelRequest {
|
|
message Request {
|
|
string name = 1;
|
|
uint32 sort_order = 2;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message CreateMemberLevelResponse {
|
|
message Result {
|
|
bet.beteran.member_level.MemberLevel member_level = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_level.ListMemberLevels
|
|
message ListMemberLevelsRequest {
|
|
message Request {
|
|
message Search {
|
|
optional string name_like = 1;
|
|
}
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
repeated bet.protobuf.pagination.Sort sorts = 2;
|
|
optional Search search = 3;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message ListMemberLevelsResponse {
|
|
message Result {
|
|
repeated bet.beteran.member_level.MemberLevel member_levels = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_level.GetMemberLevel
|
|
message GetMemberLevelRequest {
|
|
message Request {
|
|
string id = 1;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message GetMemberLevelResponse {
|
|
message Result {
|
|
bet.beteran.member_level.MemberLevel member_level = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_level.UpdateMemberLevel
|
|
message UpdateMemberLevelRequest {
|
|
message Request {
|
|
string id = 1;
|
|
string name = 2;
|
|
uint32 sort_order = 3;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message UpdateMemberLevelResponse {
|
|
message Result {
|
|
bet.beteran.member_level.MemberLevel member_level = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.ss.member_level.DeleteMemberLevel
|
|
message DeleteMemberLevelRequest {
|
|
message Request {
|
|
string id = 1;
|
|
}
|
|
bet.beteran.core.network.Client client = 1;
|
|
Request request = 2;
|
|
}
|
|
|
|
message DeleteMemberLevelResponse {
|
|
message Result {
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|