feat: add ImagePath and ImageDocumentId to ManualPaymentModel and update related query handler
Build and Deploy / build (push) Successful in 1m47s
Build and Deploy / build (push) Successful in 1m47s
This commit is contained in:
+13
-12
@@ -1,4 +1,3 @@
|
||||
using BackOffice.BFF.ManualPayment.Protobuf;
|
||||
using CMSMicroservice.Protobuf.Protos.ManualPayment;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -26,7 +25,7 @@ public class GetManualPaymentsQueryHandler : IRequestHandler<GetManualPaymentsQu
|
||||
request.Status,
|
||||
request.Type);
|
||||
|
||||
var grpcRequest = new GetAllManualPaymentsRequest
|
||||
var grpcRequest = new GetAllManualPaymentsRequest
|
||||
{
|
||||
PageNumber = request.PageNumber,
|
||||
PageSize = request.PageSize,
|
||||
@@ -44,23 +43,25 @@ public class GetManualPaymentsQueryHandler : IRequestHandler<GetManualPaymentsQu
|
||||
{
|
||||
Id = m.Id,
|
||||
UserId = m.UserId,
|
||||
UserFullName = m.UserFullName,
|
||||
UserMobile = m.UserMobile,
|
||||
UserFullName = m.UserFullName ?? string.Empty,
|
||||
UserMobile = m.UserMobile ?? string.Empty,
|
||||
Amount = m.Amount,
|
||||
Type = m.Type.GetHashCode(),
|
||||
TypeDisplay = m.TypeDisplay,
|
||||
Description = m.Description,
|
||||
ReferenceNumber = m.ReferenceNumber,
|
||||
TypeDisplay = m.TypeDisplay ?? string.Empty,
|
||||
Description = m.Description ?? string.Empty,
|
||||
ReferenceNumber = m.ReferenceNumber ?? string.Empty,
|
||||
Status = m.Status.GetHashCode(),
|
||||
StatusDisplay = m.StatusDisplay,
|
||||
StatusDisplay = m.StatusDisplay ?? string.Empty,
|
||||
RequestedBy = m.RequestedBy,
|
||||
RequestedByName = m.RequestedByName,
|
||||
RequestedByName = m.RequestedByName ?? string.Empty,
|
||||
ApprovedBy = m.ApprovedBy,
|
||||
ApprovedByName = m.ApprovedByName,
|
||||
ApprovedByName = m.ApprovedByName ?? string.Empty,
|
||||
ApprovedAt = m.ApprovedAt?.ToDateTime(),
|
||||
RejectionReason = m.RejectionReason,
|
||||
RejectionReason = m.RejectionReason ?? string.Empty,
|
||||
TransactionId = m.TransactionId,
|
||||
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow
|
||||
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow,
|
||||
ImagePath = m.ImagePath,
|
||||
ImageDocumentId = m.ImageDocumentId
|
||||
})
|
||||
.ToList()
|
||||
?? new List<ManualPaymentModel>();
|
||||
|
||||
+2
@@ -27,5 +27,7 @@ public class ManualPaymentModel
|
||||
public string? RejectionReason { get; set; }
|
||||
public long? TransactionId { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public string? ImagePath { get; set; }
|
||||
public long? ImageDocumentId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user