This commit is contained in:
masoodafar-web
2025-12-02 03:32:50 +03:30
parent 27f59f0c30
commit bcf2bc2a52
23 changed files with 5712 additions and 31 deletions
@@ -3,7 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.11</Version>
<Version>0.0.12</Version>
<PackageId>Foursat.FrontOffice.BFF.Category.Protobuf</PackageId>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<DebugSymbols>False</DebugSymbols>
@@ -22,4 +22,13 @@
<ItemGroup>
<Protobuf Include="Protos\category.proto" ProtoRoot="Protos\" GrpcServices="Both" />
</ItemGroup>
<Target Name="PushToFoursatNuget" AfterTargets="Pack">
<PropertyGroup>
<NugetPackagePath>$(PackageOutputPath)$(PackageId).$(Version).nupkg</NugetPackagePath>
<PushCommand>dotnet nuget push **/*.nupkg --source https://git.afrino.co/api/packages/FourSat/nuget/index.json --api-key 061a5cb15517c6da39c16cfce8556c55ae104d0d --skip-duplicate &amp;&amp; del "$(NugetPackagePath)"</PushCommand>
</PropertyGroup>
<Exec Command="$(PushCommand)" />
</Target>
</Project>
@@ -3,7 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.15</Version>
<Version>0.0.16</Version>
<PackageId>Foursat.FrontOffice.BFF.Products.Protobuf</PackageId>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<DebugSymbols>False</DebugSymbols>
@@ -3,7 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.13</Version>
<Version>0.0.14</Version>
<PackageId>Foursat.FrontOffice.BFF.UserWallet.Protobuf</PackageId>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<DebugSymbols>False</DebugSymbols>
@@ -12,10 +12,10 @@ option csharp_namespace = "FrontOffice.BFF.UserWallet.Protobuf.Protos.UserWallet
service UserWalletContract
{
rpc GetAllUserWalletChangeLog(google.protobuf.Empty) returns (GetAllUserWalletChangeLogResponse){
rpc GetAllUserWalletChangeLog(GetAllUserWalletChangeLogRequest) returns (GetAllUserWalletChangeLogResponse){
option (google.api.http) = {
get: "/GetAllUserWalletChangeLog"
post: "/GetAllUserWalletChangeLog"
body: "*"
};
};
rpc GetUserWallet(google.protobuf.Empty) returns (GetUserWalletResponse){
@@ -30,12 +30,23 @@ service UserWalletContract
body: "*"
};
};
rpc WithdrawBalance(google.protobuf.Empty) returns (google.protobuf.Empty){
rpc WithdrawBalance(WithdrawBalanceRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/WithdrawBalance"
body: "*"
};
};
rpc GetUserWithdrawals(GetUserWithdrawalsRequest) returns (GetUserWithdrawalsResponse){
option (google.api.http) = {
post: "/GetUserWithdrawals"
body: "*"
};
};
rpc GetWithdrawalSettings(google.protobuf.Empty) returns (GetWithdrawalSettingsResponse){
option (google.api.http) = {
get: "/GetWithdrawalSettings"
};
};
}
message GetAllUserWalletChangeLogResponse
{
@@ -56,6 +67,45 @@ message GetUserWalletResponse
{
int64 balance = 1;
int64 network_balance = 2;
int64 discount_balance = 3;
}
message WithdrawBalanceRequest
{
int64 payout_id = 1;
int32 withdrawal_method = 2; // 0: Cash, 1: Diamond
google.protobuf.StringValue iban_number = 3;
}
message GetAllUserWalletChangeLogRequest
{
google.protobuf.Int64Value reference_id = 1;
google.protobuf.BoolValue is_increase = 2;
}
message GetUserWithdrawalsRequest
{
google.protobuf.Int32Value status = 1;
}
message GetUserWithdrawalsResponse
{
MetaData meta_data = 1;
repeated UserWithdrawalModel models = 2;
}
message UserWithdrawalModel
{
int64 id = 1;
string week_number = 2;
int64 total_amount = 3;
int32 status = 4;
google.protobuf.Int32Value withdrawal_method = 5;
string iban_number = 6;
google.protobuf.Timestamp created = 7;
}
message GetWithdrawalSettingsResponse
{
int64 min_withdrawal_amount = 1;
}
message PaginationState
@@ -85,4 +135,4 @@ message GetUserWalletResponse
sfixed32 nanos = 2;
}