beteran-protobuf/proto/c2se/member_referrer.proto

115 lines
2.5 KiB
Protocol Buffer
Raw Normal View History

2022-08-19 06:14:52 +00:00
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 {
2022-08-19 06:57:41 +00:00
bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1;
2022-08-19 06:14:52 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
2022-08-20 12:39:17 +00:00
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;
}
2022-08-19 06:14:52 +00:00
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 {
2022-09-01 17:17:19 +00:00
uint64 total_count = 1;
repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 2;
2022-08-19 06:14:52 +00:00
}
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;
}
2022-08-20 12:39:17 +00:00
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;
}
2022-08-19 06:14:52 +00:00
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;
}
2022-08-20 12:39:17 +00:00
message DeleteMemberReferrersRequest {
repeated string ids = 1;
}
message DeleteMemberReferrersResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}