Add CreatedAt field to wallet change log responses
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
using CMSMicroservice.Application.UserWalletChangeLogCQ.Queries.GetAllUserWalletChangeLogByFilter;
|
||||
using CMSMicroservice.Application.UserWalletChangeLogCQ.Queries.GetUserWalletChangeLog;
|
||||
|
||||
namespace CMSMicroservice.Application.Common.Mappings;
|
||||
|
||||
public class UserWalletChangeLogProfile : IRegister
|
||||
{
|
||||
void IRegister.Register(TypeAdapterConfig config)
|
||||
{
|
||||
//config.NewConfig<Source,Destination>()
|
||||
// .Map(dest => dest.FullName, src => $"{src.Firstname} {src.Lastname}");
|
||||
config.NewConfig<UserWalletChangeLog,GetAllUserWalletChangeLogByFilterResponseModel>()
|
||||
.Map(dest => dest.CreatedAt, src => src.Created);
|
||||
|
||||
config.NewConfig<UserWalletChangeLog, GetUserWalletChangeLogResponseDto>()
|
||||
.Map(dest => dest.CreatedAt, src => src.Created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,6 @@ public class GetAllUserWalletChangeLogByFilterResponseDto
|
||||
public bool IsIncrease { get; set; }
|
||||
//شناسه ارجاع
|
||||
public long? RefrenceId { get; set; }
|
||||
//تاریخ ایجاد
|
||||
public DateTime CreatedAt { get; set; }
|
||||
}
|
||||
|
||||
@@ -17,5 +17,7 @@ public class GetUserWalletChangeLogResponseDto
|
||||
public bool IsIncrease { get; set; }
|
||||
//شناسه ارجاع
|
||||
public long? RefrenceId { get; set; }
|
||||
//تاریخ ایجاد
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user