2025-11-25 02:25:35 +03:30
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package userwallet;
|
|
|
|
|
|
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
|
|
|
|
|
option csharp_namespace = "FrontOffice.BFF.UserWallet.Protobuf.Protos.UserWallet";
|
|
|
|
|
|
|
|
|
|
service UserWalletContract
|
|
|
|
|
{
|
2025-11-25 02:50:11 +03:30
|
|
|
rpc GetAllUserWalletChangeLog(google.protobuf.Empty) returns (GetAllUserWalletChangeLogResponse){
|
2025-11-25 02:25:35 +03:30
|
|
|
option (google.api.http) = {
|
|
|
|
|
get: "/GetAllUserWalletChangeLog"
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
rpc GetUserWallet(google.protobuf.Empty) returns (GetUserWalletResponse){
|
|
|
|
|
option (google.api.http) = {
|
|
|
|
|
get: "/GetUserWallet"
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
rpc TransferUserWalletBallance(google.protobuf.Empty) returns (google.protobuf.Empty){
|
|
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/TransferUserWalletBallance"
|
|
|
|
|
body: "*"
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-11-25 02:50:11 +03:30
|
|
|
rpc WithdrawBalance(google.protobuf.Empty) returns (google.protobuf.Empty){
|
2025-11-25 02:25:35 +03:30
|
|
|
option (google.api.http) = {
|
|
|
|
|
post: "/WithdrawBalance"
|
|
|
|
|
body: "*"
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
message GetAllUserWalletChangeLogResponse
|
|
|
|
|
{
|
|
|
|
|
MetaData meta_data = 1;
|
|
|
|
|
repeated GetAllUserWalletChangeLogResponseModel models = 2;
|
|
|
|
|
}
|
|
|
|
|
message GetAllUserWalletChangeLogResponseModel
|
|
|
|
|
{
|
|
|
|
|
int64 current_balance = 1;
|
|
|
|
|
int64 change_value = 2;
|
|
|
|
|
int64 current_network_balance = 3;
|
|
|
|
|
int64 change_nerwork_value = 4;
|
|
|
|
|
bool is_increase = 5;
|
|
|
|
|
google.protobuf.Int64Value refrence_id = 6;
|
2025-11-28 14:27:00 +03:30
|
|
|
google.protobuf.Timestamp created_at = 7;
|
2025-11-25 02:25:35 +03:30
|
|
|
}
|
2025-11-25 02:50:11 +03:30
|
|
|
message GetUserWalletResponse
|
|
|
|
|
{
|
|
|
|
|
int64 balance = 1;
|
|
|
|
|
int64 network_balance = 2;
|
|
|
|
|
}
|
2025-11-25 02:25:35 +03:30
|
|
|
|
|
|
|
|
message PaginationState
|
|
|
|
|
{
|
|
|
|
|
int32 page_number = 1;
|
|
|
|
|
|
|
|
|
|
int32 page_size = 2;
|
|
|
|
|
}
|
|
|
|
|
message MetaData
|
|
|
|
|
{
|
|
|
|
|
int64 current_page = 1;
|
|
|
|
|
|
|
|
|
|
int64 total_page = 2;
|
|
|
|
|
|
|
|
|
|
int64 page_size = 3;
|
|
|
|
|
|
|
|
|
|
int64 total_count = 4;
|
|
|
|
|
|
|
|
|
|
bool has_previous = 5;
|
|
|
|
|
|
|
|
|
|
bool has_next = 6;
|
|
|
|
|
}
|
|
|
|
|
message DecimalValue
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int64 units = 1;
|
|
|
|
|
|
|
|
|
|
sfixed32 nanos = 2;
|
|
|
|
|
}
|
|
|
|
|
|