syntax = "proto3"; package bet.beteran.c2se.member; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member.proto"; message CreateMemberRequest { string site_id = 1; string member_class_id = 2; string member_level_id = 3; optional string referrer_member_username = 4; string username = 5; string password = 6; string nickname = 7; optional string mobile_phone_number = 8; bet.beteran.member.MemberState state = 9; } message CreateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message ListMembersRequest { message Search { optional string site_id = 1; optional string member_class_id = 2; optional string member_level_id = 3; optional string referrer_member_id = 4; optional string username_like = 5; optional string nickname_like = 6; optional string mobile_phone_number_like = 7; optional string last_signined_ip = 8; optional bet.beteran.member.MemberState state = 9; optional uint64 deleted_at = 10; } optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Sort sorts = 2; optional Search search = 3; } message ListMembersResponse { message Result { repeated bet.beteran.member.MemberModel members = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } 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; } 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; } 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; } message UpdateMemberResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message UpdateMemberForStateRequest { string id = 1; bet.beteran.member.MemberState state = 2; } message UpdateMemberForStateResponse { message Result { bet.beteran.member.MemberModel member = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message DeleteMemberRequest { string id = 1; } message DeleteMemberResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }