2022-08-12 08:07:43 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.c2se.backend.member_level;
|
|
|
|
|
|
|
|
import "protobuf/rpc/error.proto";
|
|
|
|
import "protobuf/pagination/pagination.proto";
|
|
|
|
import "protobuf/pagination/search.proto";
|
|
|
|
import "protobuf/pagination/sort.proto";
|
|
|
|
|
|
|
|
import "models/member/member_level.proto";
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.c2se.backend.member_level.CreateMemberLevel
|
|
|
|
message CreateMemberLevelRequest {
|
2022-08-12 08:20:02 +00:00
|
|
|
string name = 1;
|
|
|
|
uint32 sort_order = 2;
|
2022-08-12 08:07:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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.c2se.backend.member_level.ListMemberLeveles
|
|
|
|
message ListMemberLevelesRequest {
|
|
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
|
|
repeated bet.protobuf.pagination.Search searches = 2;
|
|
|
|
repeated bet.protobuf.pagination.Sort sorts = 3;
|
2022-08-12 08:20:02 +00:00
|
|
|
optional string name_like = 4;
|
2022-08-12 08:07:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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.c2se.backend.member_level.GetMemberLevel
|
|
|
|
message GetMemberLevelRequest {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
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.c2se.backend.member_level.UpdateMemberLevel
|
|
|
|
message UpdateMemberLevelRequest {
|
|
|
|
string id = 1;
|
|
|
|
optional string parent_id = 2;
|
|
|
|
string name = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
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.c2se.backend.member_level.DeleteMemberLevel
|
|
|
|
message DeleteMemberLevelRequest {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteMemberLevelResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|