diff --git a/proto/c2se/backend/member_referrer.proto b/proto/c2se/backend/member_referrer.proto index 9ae533b..e24ef43 100644 --- a/proto/c2se/backend/member_referrer.proto +++ b/proto/c2se/backend/member_referrer.proto @@ -3,7 +3,10 @@ syntax = "proto3"; package bet.beteran.c2se.backend.member_referrer; // subject = bet.beteran.c2se.backend.member_referrer.CreateMemberReferrer +// subject = bet.beteran.c2se.backend.member_referrer.CreateMemberReferrers // subject = bet.beteran.c2se.backend.member_referrer.ListMemberReferrers // subject = bet.beteran.c2se.backend.member_referrer.GetMemberReferrer +// subject = bet.beteran.c2se.backend.member_referrer.GetMemberReferrerByCode // subject = bet.beteran.c2se.backend.member_referrer.UpdateMemberReferrer // subject = bet.beteran.c2se.backend.member_referrer.DeleteMemberReferrer +// subject = bet.beteran.c2se.backend.member_referrer.DeleteMemberReferrers diff --git a/proto/c2se/frontend/member_referrer.proto b/proto/c2se/frontend/member_referrer.proto new file mode 100644 index 0000000..9cad253 --- /dev/null +++ b/proto/c2se/frontend/member_referrer.proto @@ -0,0 +1,5 @@ +syntax = "proto3"; + +package bet.beteran.c2se.frontend.member_referrer; + +// subject = bet.beteran.c2se.frontend.member_referrer.GetMemberReferrerByCode diff --git a/proto/c2se/member_referrer.proto b/proto/c2se/member_referrer.proto index 2b1059b..245df47 100644 --- a/proto/c2se/member_referrer.proto +++ b/proto/c2se/member_referrer.proto @@ -18,6 +18,18 @@ message CreateMemberReferrerResponse { optional Result result = 2; } +message CreateMemberReferrersRequest { + repeated string member_ids = 1; +} + +message CreateMemberReferrersResponse { + message Result { + repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + message ListMemberReferrersRequest { message Search { optional string member_id = 1; @@ -49,6 +61,20 @@ message GetMemberReferrerResponse { optional Result result = 2; } + +message GetMemberReferrerByCodeRequest { + string code = 1; +} + +message GetMemberReferrerByCodeResponse { + message Result { + bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + + message UpdateMemberReferrerRequest { string id = 1; bool can_use = 2; @@ -73,3 +99,15 @@ message DeleteMemberReferrerResponse { optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } + + +message DeleteMemberReferrersRequest { + repeated string ids = 1; +} + +message DeleteMemberReferrersResponse { + message Result { + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} diff --git a/proto/ss/member_referrer.proto b/proto/ss/member_referrer.proto index dc9d9c4..0ce1ad7 100644 --- a/proto/ss/member_referrer.proto +++ b/proto/ss/member_referrer.proto @@ -25,6 +25,25 @@ message CreateMemberReferrerResponse { optional Result result = 2; } +// subject = bet.beteran.ss.member_referrer.CreateMemberReferrers +message CreateMemberReferrersRequest { + message Request { + repeated string member_ids = 1; + } + bet.beteran.core.network.Client client = 1; + Request request = 2; + +} + +message CreateMemberReferrersResponse { + message Result { + repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + + // subject = bet.beteran.ss.member_referrer.ListMemberReferrers message ListMemberReferrersRequest { message Request { @@ -66,6 +85,23 @@ message GetMemberReferrerResponse { optional Result result = 2; } +// subject = bet.beteran.ss.member_referrer.GetMemberReferrerByCode +message GetMemberReferrerByCodeRequest { + message Request { + string code = 1; + } + bet.beteran.core.network.Client client = 1; + Request request = 2; +} + +message GetMemberReferrerByCodeResponse { + message Result { + bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1; + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +} + // subject = bet.beteran.ss.member_referrer.UpdateMemberReferrer message UpdateMemberReferrerRequest { message Request { @@ -100,3 +136,20 @@ message DeleteMemberReferrerResponse { optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } + + +// subject = bet.beteran.ss.member_referrer.DeleteMemberReferrers +message DeleteMemberReferrersRequest { + message Request { + repeated string ids = 1; + } + bet.beteran.core.network.Client client = 1; + Request request = 2; +} + +message DeleteMemberReferrersResponse { + message Result { + } + optional bet.protobuf.rpc.Error error = 1; + optional Result result = 2; +}