diff --git a/proto/c2se/backend/member.proto b/proto/c2se/backend/member.proto index 54fd229..a07611a 100644 --- a/proto/c2se/backend/member.proto +++ b/proto/c2se/backend/member.proto @@ -25,7 +25,6 @@ message ListMembersRequest { optional string last_signined_ip = 11; optional bet.beteran.member.MemberState state = 12; optional uint64 deleted_at = 13; - } message ListMembersResponse { @@ -61,3 +60,32 @@ message GetMemberByUsernameResponse { optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } + +// subject = bet.beteran.c2se.backend.member.UpdateMember +message UpdateMemberRequest { + optional string site_id = 1; + optional string member_level_id = 2; + optional string password = 3; + optional string mobile_phone_number = 4; + optional bet.beteran.member.MemberState state = 5; +} + +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; +} diff --git a/proto/ss/member/member.proto b/proto/ss/member/member.proto index c7f054e..8a90838 100644 --- a/proto/ss/member/member.proto +++ b/proto/ss/member/member.proto @@ -64,3 +64,35 @@ message GetMemberByUsernameResponse { optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } + + +// subject = bet.beteran.ss.member.UpdateMember +message UpdateMemberRequest { + bet.beteran.core.network.Client client = 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.ss.member.DeleteMember +message DeleteMemberRequest { + bet.beteran.core.network.Client client = 1; + string id = 2; +} + +message DeleteMemberResponse { + message Result { + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +}