53 lines
1.3 KiB
Protocol Buffer
53 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bet.beteran.c2se.backend.member;
|
|
|
|
import "protobuf/rpc/error.proto";
|
|
import "protobuf/pagination/pagination.proto";
|
|
import "protobuf/pagination/search.proto";
|
|
import "protobuf/pagination/sort.proto";
|
|
|
|
import "models/member/member.proto";
|
|
|
|
|
|
// subject = bet.beteran.c2se.backend.member.ListMembers
|
|
message ListMembersRequest {
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
repeated bet.protobuf.pagination.Search searches = 2;
|
|
repeated bet.protobuf.pagination.Sort sorts = 3;
|
|
}
|
|
|
|
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.c2se.backend.member.GetMember
|
|
message GetMemberRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message GetMemberResponse {
|
|
message Result {
|
|
bet.beteran.member.Member member = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|
|
|
|
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
|
|
message GetMemberByUsernameRequest {
|
|
string username = 1;
|
|
}
|
|
|
|
message GetMemberByUsernameResponse {
|
|
message Result {
|
|
bet.beteran.member.Member member = 1;
|
|
}
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
optional Result result = 2;
|
|
}
|