beteran-protobuf/proto/ss/member/member_level.proto

90 lines
2.2 KiB
Protocol Buffer
Raw Normal View History

2022-08-12 08:20:02 +00:00
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.ListMemberLeveles
message ListMemberLevelesRequest {
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;
optional string parent_id = 3;
string name = 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;
}