beteran-protobuf/proto/ss/member_referrer.proto

157 lines
3.8 KiB
Protocol Buffer

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.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 {
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 {
uint64 total_count = 1;
repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 2;
}
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.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 {
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;
}
// 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;
}