Update category proto with pagination and HTTP annotations
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user