Add CreatedAt field to wallet change log responses

This commit is contained in:
masoodafar-web
2025-11-28 14:07:10 +03:30
parent a3c7033d95
commit 99ef7983f8
4 changed files with 14 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -24,4 +24,6 @@ public class GetAllUserWalletChangeLogByFilterResponseDto
public bool IsIncrease { get; set; }
//شناسه ارجاع
public long? RefrenceId { get; set; }
//تاریخ ایجاد
public DateTime CreatedAt { get; set; }
}

View File

@@ -17,5 +17,7 @@ public class GetUserWalletChangeLogResponseDto
public bool IsIncrease { get; set; }
//شناسه ارجاع
public long? RefrenceId { get; set; }
//تاریخ ایجاد
public DateTime CreatedAt { get; set; }
}

View File

@@ -87,6 +87,7 @@ message GetUserWalletChangeLogResponse
int64 change_nerwork_value = 6;
bool is_increase = 7;
google.protobuf.Int64Value refrence_id = 8;
google.protobuf.Timestamp created_at = 9;
}
message GetAllUserWalletChangeLogByFilterRequest
{
@@ -119,4 +120,5 @@ message GetAllUserWalletChangeLogByFilterResponseModel
int64 change_nerwork_value = 6;
bool is_increase = 7;
google.protobuf.Int64Value refrence_id = 8;
google.protobuf.Timestamp created_at = 9;
}