beteran-protobuf/proto/c2se/backend/member.proto

64 lines
1.7 KiB
Protocol Buffer
Raw Normal View History

2022-07-12 07:02:38 +00:00
syntax = "proto3";
package bet.beteran.c2se.backend.member;
2022-08-03 07:31:10 +00:00
import "protobuf/rpc/error.proto";
2022-07-12 07:02:38 +00:00
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;
2022-08-11 01:04:25 +00:00
optional string site_id = 4;
optional string member_class_id = 5;
optional string member_level_id = 6;
optional string referrer_member_id = 7;
optional string username_like = 8;
optional string nickname_like = 9;
optional string mobile_phone_number_like = 10;
optional string last_signined_ip = 11;
optional bet.beteran.member.MemberState state = 12;
optional uint64 deleted_at = 13;
2022-07-12 07:02:38 +00:00
}
message ListMembersResponse {
2022-08-03 07:31:10 +00:00
message Result {
2022-08-11 01:04:25 +00:00
repeated bet.beteran.member.MemberModel members = 1;
2022-08-03 07:31:10 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-12 07:02:38 +00:00
}
// subject = bet.beteran.c2se.backend.member.GetMember
message GetMemberRequest {
string id = 1;
}
message GetMemberResponse {
2022-08-03 07:31:10 +00:00
message Result {
2022-08-11 01:04:25 +00:00
bet.beteran.member.MemberModel member = 1;
2022-08-03 07:31:10 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-12 07:02:38 +00:00
}
// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
message GetMemberByUsernameRequest {
string username = 1;
}
message GetMemberByUsernameResponse {
2022-08-03 07:31:10 +00:00
message Result {
2022-08-11 01:04:25 +00:00
bet.beteran.member.MemberModel member = 1;
2022-08-03 07:31:10 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-12 07:02:38 +00:00
}