Update category proto with pagination and HTTP annotations

This commit is contained in:
masoodafar-web
2025-11-28 11:56:00 +03:30
parent 518285531a
commit 1342fb41aa
10 changed files with 478 additions and 33 deletions

View File

@@ -1,4 +1,7 @@
using System.Globalization;
using FrontOffice.BFF.Application.CategoryCQ.Queries.GetAllCategories;
using FrontOffice.BFF.Category.Protobuf.Protos.Category;
namespace FrontOffice.BFF.WebApi.Common.Mappings;
public class GeneralMapping : IRegister
@@ -60,5 +63,8 @@ public class GeneralMapping : IRegister
config.NewConfig<byte[], Google.Protobuf.ByteString>()
.MapWith(src => Google.Protobuf.ByteString.CopyFrom(src));
config.NewConfig<GetCategoriesRequest, GetAllCategoriesQuery>()
.MapWith(_ => new GetAllCategoriesQuery());
}
}