57 lines
1.4 KiB
Protocol Buffer
57 lines
1.4 KiB
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package bet.beteran.ss.member;
|
||
|
|
||
|
import "protobuf/rpc/error.proto";
|
||
|
import "models/core/network.proto";
|
||
|
import "protobuf/pagination/pagination.proto";
|
||
|
import "protobuf/pagination/search.proto";
|
||
|
import "protobuf/pagination/sort.proto";
|
||
|
|
||
|
import "models/member/member.proto";
|
||
|
|
||
|
|
||
|
// subject = bet.beteran.ss.member.ListMembers
|
||
|
message ListMembersRequest {
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
message ListMembersResponse {
|
||
|
message Result {
|
||
|
repeated bet.beteran.member.Member members = 1;
|
||
|
}
|
||
|
optional bet.protobuf.rpc.Error error = 1;
|
||
|
optional Result result = 2;
|
||
|
}
|
||
|
|
||
|
// subject = bet.beteran.ss.member.GetMember
|
||
|
message GetMemberRequest {
|
||
|
bet.beteran.core.network.Client client = 1;
|
||
|
string id = 2;
|
||
|
}
|
||
|
|
||
|
message GetMemberResponse {
|
||
|
message Result {
|
||
|
bet.beteran.member.Member member = 1;
|
||
|
}
|
||
|
optional bet.protobuf.rpc.Error error = 1;
|
||
|
optional Result result = 2;
|
||
|
}
|
||
|
|
||
|
// subject = bet.beteran.ss.member.GetMemberByUsername
|
||
|
message GetMemberByUsernameRequest {
|
||
|
bet.beteran.core.network.Client client = 1;
|
||
|
string username = 2;
|
||
|
}
|
||
|
|
||
|
message GetMemberByUsernameResponse {
|
||
|
message Result {
|
||
|
bet.beteran.member.Member member = 1;
|
||
|
}
|
||
|
optional bet.protobuf.rpc.Error error = 1;
|
||
|
optional Result result = 2;
|
||
|
}
|