Add Products Protobuf project and update references

This commit is contained in:
masoodafar-web
2025-11-17 22:54:13 +03:30
parent 2446b2b76b
commit 37be756df0
8 changed files with 31 additions and 9 deletions

View File

@@ -22,4 +22,13 @@
<ItemGroup>
<Protobuf Include="Protos\products.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>

View File

@@ -1,5 +1,5 @@
using FluentValidation;
using FrontOfficeMicroservice.Protobuf.Protos.Products;
using FrontOffice.BFF.Products.Protobuf.Protos.Products;
namespace FrontOfficeMicroservice.Protobuf.Validator.Products;
public class GetAllProductsByFilterFilterValidator : AbstractValidator<GetAllProductsByFilterFilter>

View File

@@ -1,5 +1,5 @@
using FluentValidation;
using FrontOfficeMicroservice.Protobuf.Protos.Products;
using FrontOffice.BFF.Products.Protobuf.Protos.Products;
namespace FrontOfficeMicroservice.Protobuf.Validator.Products;
public class GetAllProductsByFilterRequestValidator : AbstractValidator<GetAllProductsByFilterRequest>

View File

@@ -1,5 +1,5 @@
using FluentValidation;
using FrontOfficeMicroservice.Protobuf.Protos.Products;
using FrontOffice.BFF.Products.Protobuf.Protos.Products;
namespace FrontOfficeMicroservice.Protobuf.Validator.Products;
public class GetProductsRequestValidator : AbstractValidator<GetProductsRequest>