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