beteran-protobuf/proto/c2se/member_referrer.proto

76 lines
1.7 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 {
bet.beteran.member_referrer.MemberReferrer member_referrer = 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 {
repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 1;
}
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 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;
}