beteran-protobuf/proto/ss/member_referrer.proto

156 lines
3.8 KiB
Protocol Buffer
Raw Normal View History

2022-08-19 06:14:52 +00:00
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 {
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
// 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;
}
2022-08-19 06:14:52 +00:00
// 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;
}
2022-08-20 12:39:17 +00:00
// 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;
}
2022-08-19 06:14:52 +00:00
// 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;
}
2022-08-20 12:39:17 +00:00
// 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;
}