syntax = "proto3"; package bet.beteran.ss.member_referrer; import "models/core/network.proto"; import "protobuf/rpc.proto"; import "protobuf/pagination.proto"; import "models/member_referrer.proto"; // subject = bet.beteran.ss.member_referrer.CreateMemberReferrer message CreateMemberReferrerRequest { message Request { string member_id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message CreateMemberReferrerResponse { 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.ListMemberReferrers message ListMemberReferrersRequest { message Request { message Search { optional string member_id = 1; optional bool can_use = 2; optional string memo_like = 3; } optional bet.protobuf.pagination.Pagination pagination = 1; repeated bet.protobuf.pagination.Sort sorts = 2; optional Search search = 3; } bet.beteran.core.network.Client client = 1; Request request = 2; } message ListMemberReferrersResponse { 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.GetMemberReferrer message GetMemberReferrerRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message GetMemberReferrerResponse { 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 { string id = 1; bool can_use = 2; optional string memo = 3; } bet.beteran.core.network.Client client = 1; Request request = 2; } message UpdateMemberReferrerResponse { 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.DeleteMemberReferrer message DeleteMemberReferrerRequest { message Request { string id = 1; } bet.beteran.core.network.Client client = 1; Request request = 2; } message DeleteMemberReferrerResponse { message Result { } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }