beteran-protobuf/proto/c2se/member_referrer.proto

115 lines
2.5 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.member_referrer;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_referrer.proto";
message CreateMemberReferrerRequest {
string member_id = 1;
}
message CreateMemberReferrerResponse {
message Result {
bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1;
}
optional bet.protobuf.rpc.Error error = 1;
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;
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;
}
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;
}
message GetMemberReferrerRequest {
string id = 1;
}
message GetMemberReferrerResponse {
message Result {
bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1;
}
optional bet.protobuf.rpc.Error error = 1;
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;
optional string memo = 3;
}
message UpdateMemberReferrerResponse {
message Result {
bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberReferrerRequest {
string id = 1;
}
message DeleteMemberReferrerResponse {
message Result {
}
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;
}