beteran-protobuf/proto/c2se/member_balance.proto

78 lines
1.7 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.member_balance;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/member_balance.proto";
message CreateMemberBalanceRequest {
string member_id = 1;
}
message CreateMemberBalanceResponse {
message Result {
bet.beteran.member_balance.MemberBalance member_balance = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message ListMemberBalancesRequest {
message Search {
optional string member_id = 1;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListMemberBalancesResponse {
message Result {
uint64 total_count = 1;
repeated bet.beteran.member_balance.MemberBalance member_balances = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message GetMemberBalanceRequest {
string id = 1;
}
message GetMemberBalanceResponse {
message Result {
bet.beteran.member_balance.MemberBalance member_balance = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message UpdateMemberBalanceRequest {
string id = 1;
double balance = 2;
double balance_bota = 3;
double balance_sum = 4;
}
message UpdateMemberBalanceResponse {
message Result {
bet.beteran.member_balance.MemberBalance member_balance = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message DeleteMemberBalanceRequest {
string id = 1;
}
message DeleteMemberBalanceResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}