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;
|
namespace CMSMicroservice.Application.Common.Mappings;
|
||||||
|
|
||||||
public class UserWalletChangeLogProfile : IRegister
|
public class UserWalletChangeLogProfile : IRegister
|
||||||
{
|
{
|
||||||
void IRegister.Register(TypeAdapterConfig config)
|
void IRegister.Register(TypeAdapterConfig config)
|
||||||
{
|
{
|
||||||
//config.NewConfig<Source,Destination>()
|
config.NewConfig<UserWalletChangeLog,GetAllUserWalletChangeLogByFilterResponseModel>()
|
||||||
// .Map(dest => dest.FullName, src => $"{src.Firstname} {src.Lastname}");
|
.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 bool IsIncrease { get; set; }
|
||||||
//شناسه ارجاع
|
//شناسه ارجاع
|
||||||
public long? RefrenceId { 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 bool IsIncrease { get; set; }
|
||||||
//شناسه ارجاع
|
//شناسه ارجاع
|
||||||
public long? RefrenceId { get; set; }
|
public long? RefrenceId { get; set; }
|
||||||
|
//تاریخ ایجاد
|
||||||
|
public DateTime CreatedAt { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -87,6 +87,7 @@ message GetUserWalletChangeLogResponse
|
|||||||
int64 change_nerwork_value = 6;
|
int64 change_nerwork_value = 6;
|
||||||
bool is_increase = 7;
|
bool is_increase = 7;
|
||||||
google.protobuf.Int64Value refrence_id = 8;
|
google.protobuf.Int64Value refrence_id = 8;
|
||||||
|
google.protobuf.Timestamp created_at = 9;
|
||||||
}
|
}
|
||||||
message GetAllUserWalletChangeLogByFilterRequest
|
message GetAllUserWalletChangeLogByFilterRequest
|
||||||
{
|
{
|
||||||
@@ -119,4 +120,5 @@ message GetAllUserWalletChangeLogByFilterResponseModel
|
|||||||
int64 change_nerwork_value = 6;
|
int64 change_nerwork_value = 6;
|
||||||
bool is_increase = 7;
|
bool is_increase = 7;
|
||||||
google.protobuf.Int64Value refrence_id = 8;
|
google.protobuf.Int64Value refrence_id = 8;
|
||||||
|
google.protobuf.Timestamp created_at = 9;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user