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.CreateMember message CreateMemberRequest { string site_id = 1; string member_class_id = 2; string member_level_id = 3; optional string referrer_member_id = 4; string username = 5; string nickname = 6; optional string mobile_phone_number = 7; bet.beteran.member.MemberState state = 8; } message CreateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // 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; 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; } message ListMembersResponse { message Result { repeated bet.beteran.member.MemberModel 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.MemberModel 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.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.c2se.backend.member.UpdateMember message UpdateMemberRequest { string id = 1; optional string site_id = 2; optional string member_level_id = 3; optional string password = 4; optional string mobile_phone_number = 5; optional bet.beteran.member.MemberState state = 6; } message UpdateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } // subject = bet.beteran.c2se.backend.member.DeleteMember message DeleteMemberRequest { string id = 1; } message DeleteMemberResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }