feat: 管理端核心实体CRUD补齐
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Domain.Payments.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// 创建支付记录命令。
|
||||
/// </summary>
|
||||
public sealed class CreatePaymentCommand : IRequest<PaymentDto>
|
||||
{
|
||||
/// <summary>
|
||||
/// 订单 ID。
|
||||
/// </summary>
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付方式。
|
||||
/// </summary>
|
||||
public PaymentMethod Method { get; set; } = PaymentMethod.Unknown;
|
||||
|
||||
/// <summary>
|
||||
/// 支付状态。
|
||||
/// </summary>
|
||||
public PaymentStatus Status { get; set; } = PaymentStatus.Unpaid;
|
||||
|
||||
/// <summary>
|
||||
/// 金额。
|
||||
/// </summary>
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 渠道单号。
|
||||
/// </summary>
|
||||
public string? ChannelTransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间。
|
||||
/// </summary>
|
||||
public DateTime? PaidAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注。
|
||||
/// </summary>
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始回调。
|
||||
/// </summary>
|
||||
public string? Payload { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MediatR;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// 删除支付记录命令。
|
||||
/// </summary>
|
||||
public sealed class DeletePaymentCommand : IRequest<bool>
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付记录 ID。
|
||||
/// </summary>
|
||||
public long PaymentId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Domain.Payments.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// 更新支付记录命令。
|
||||
/// </summary>
|
||||
public sealed class UpdatePaymentCommand : IRequest<PaymentDto?>
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付记录 ID。
|
||||
/// </summary>
|
||||
public long PaymentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单 ID。
|
||||
/// </summary>
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付方式。
|
||||
/// </summary>
|
||||
public PaymentMethod Method { get; set; } = PaymentMethod.Unknown;
|
||||
|
||||
/// <summary>
|
||||
/// 支付状态。
|
||||
/// </summary>
|
||||
public PaymentStatus Status { get; set; } = PaymentStatus.Unpaid;
|
||||
|
||||
/// <summary>
|
||||
/// 金额。
|
||||
/// </summary>
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 渠道单号。
|
||||
/// </summary>
|
||||
public string? ChannelTransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间。
|
||||
/// </summary>
|
||||
public DateTime? PaidAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注。
|
||||
/// </summary>
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始回调。
|
||||
/// </summary>
|
||||
public string? Payload { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using TakeoutSaaS.Domain.Payments.Enums;
|
||||
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// 支付记录 DTO。
|
||||
/// </summary>
|
||||
public sealed class PaymentDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付记录 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long Id { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 租户 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long TenantId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long OrderId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付方式。
|
||||
/// </summary>
|
||||
public PaymentMethod Method { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付状态。
|
||||
/// </summary>
|
||||
public PaymentStatus Status { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 金额。
|
||||
/// </summary>
|
||||
public decimal Amount { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 渠道单号。
|
||||
/// </summary>
|
||||
public string? ChannelTransactionId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间。
|
||||
/// </summary>
|
||||
public DateTime? PaidAt { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注。
|
||||
/// </summary>
|
||||
public string? Remark { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始回调。
|
||||
/// </summary>
|
||||
public string? Payload { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 退款记录。
|
||||
/// </summary>
|
||||
public IReadOnlyList<PaymentRefundDto> Refunds { get; init; } = Array.Empty<PaymentRefundDto>();
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using TakeoutSaaS.Domain.Payments.Enums;
|
||||
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// 退款记录 DTO。
|
||||
/// </summary>
|
||||
public sealed class PaymentRefundDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 退款记录 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long Id { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付记录 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long PaymentRecordId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long OrderId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 金额。
|
||||
/// </summary>
|
||||
public decimal Amount { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 渠道退款号。
|
||||
/// </summary>
|
||||
public string? ChannelRefundId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态。
|
||||
/// </summary>
|
||||
public PaymentRefundStatus Status { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始回调。
|
||||
/// </summary>
|
||||
public string? Payload { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using TakeoutSaaS.Application.App.Payments.Commands;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Domain.Payments.Entities;
|
||||
using TakeoutSaaS.Domain.Payments.Repositories;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Handlers;
|
||||
|
||||
/// <summary>
|
||||
/// 创建支付记录命令处理器。
|
||||
/// </summary>
|
||||
public sealed class CreatePaymentCommandHandler(IPaymentRepository paymentRepository, ILogger<CreatePaymentCommandHandler> logger)
|
||||
: IRequestHandler<CreatePaymentCommand, PaymentDto>
|
||||
{
|
||||
private readonly IPaymentRepository _paymentRepository = paymentRepository;
|
||||
private readonly ILogger<CreatePaymentCommandHandler> _logger = logger;
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<PaymentDto> Handle(CreatePaymentCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
var payment = new PaymentRecord
|
||||
{
|
||||
OrderId = request.OrderId,
|
||||
Method = request.Method,
|
||||
Status = request.Status,
|
||||
Amount = request.Amount,
|
||||
TradeNo = request.TradeNo?.Trim(),
|
||||
ChannelTransactionId = request.ChannelTransactionId?.Trim(),
|
||||
PaidAt = request.PaidAt,
|
||||
Remark = request.Remark?.Trim(),
|
||||
Payload = request.Payload
|
||||
};
|
||||
|
||||
await _paymentRepository.AddPaymentAsync(payment, cancellationToken);
|
||||
await _paymentRepository.SaveChangesAsync(cancellationToken);
|
||||
_logger.LogInformation("创建支付记录 {PaymentId} 对应订单 {OrderId}", payment.Id, payment.OrderId);
|
||||
|
||||
return MapToDto(payment, []);
|
||||
}
|
||||
|
||||
private static PaymentDto MapToDto(PaymentRecord payment, IReadOnlyList<PaymentRefundRecord> refunds) => new()
|
||||
{
|
||||
Id = payment.Id,
|
||||
TenantId = payment.TenantId,
|
||||
OrderId = payment.OrderId,
|
||||
Method = payment.Method,
|
||||
Status = payment.Status,
|
||||
Amount = payment.Amount,
|
||||
TradeNo = payment.TradeNo,
|
||||
ChannelTransactionId = payment.ChannelTransactionId,
|
||||
PaidAt = payment.PaidAt,
|
||||
Remark = payment.Remark,
|
||||
Payload = payment.Payload,
|
||||
Refunds = refunds.Select(x => new PaymentRefundDto
|
||||
{
|
||||
Id = x.Id,
|
||||
PaymentRecordId = x.PaymentRecordId,
|
||||
OrderId = x.OrderId,
|
||||
Amount = x.Amount,
|
||||
ChannelRefundId = x.ChannelRefundId,
|
||||
Status = x.Status,
|
||||
Payload = x.Payload
|
||||
}).ToList()
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using TakeoutSaaS.Application.App.Payments.Commands;
|
||||
using TakeoutSaaS.Domain.Payments.Repositories;
|
||||
using TakeoutSaaS.Shared.Abstractions.Tenancy;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Handlers;
|
||||
|
||||
/// <summary>
|
||||
/// 删除支付记录命令处理器。
|
||||
/// </summary>
|
||||
public sealed class DeletePaymentCommandHandler(
|
||||
IPaymentRepository paymentRepository,
|
||||
ITenantProvider tenantProvider,
|
||||
ILogger<DeletePaymentCommandHandler> logger)
|
||||
: IRequestHandler<DeletePaymentCommand, bool>
|
||||
{
|
||||
private readonly IPaymentRepository _paymentRepository = paymentRepository;
|
||||
private readonly ITenantProvider _tenantProvider = tenantProvider;
|
||||
private readonly ILogger<DeletePaymentCommandHandler> _logger = logger;
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> Handle(DeletePaymentCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetCurrentTenantId();
|
||||
var existing = await _paymentRepository.FindByIdAsync(request.PaymentId, tenantId, cancellationToken);
|
||||
if (existing == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
await _paymentRepository.DeletePaymentAsync(request.PaymentId, tenantId, cancellationToken);
|
||||
await _paymentRepository.SaveChangesAsync(cancellationToken);
|
||||
_logger.LogInformation("删除支付记录 {PaymentId}", request.PaymentId);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Application.App.Payments.Queries;
|
||||
using TakeoutSaaS.Domain.Payments.Entities;
|
||||
using TakeoutSaaS.Domain.Payments.Repositories;
|
||||
using TakeoutSaaS.Shared.Abstractions.Tenancy;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Handlers;
|
||||
|
||||
/// <summary>
|
||||
/// 支付记录详情查询处理器。
|
||||
/// </summary>
|
||||
public sealed class GetPaymentByIdQueryHandler(
|
||||
IPaymentRepository paymentRepository,
|
||||
ITenantProvider tenantProvider)
|
||||
: IRequestHandler<GetPaymentByIdQuery, PaymentDto?>
|
||||
{
|
||||
private readonly IPaymentRepository _paymentRepository = paymentRepository;
|
||||
private readonly ITenantProvider _tenantProvider = tenantProvider;
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<PaymentDto?> Handle(GetPaymentByIdQuery request, CancellationToken cancellationToken)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetCurrentTenantId();
|
||||
var payment = await _paymentRepository.FindByIdAsync(request.PaymentId, tenantId, cancellationToken);
|
||||
if (payment == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var refunds = await _paymentRepository.GetRefundsAsync(payment.Id, tenantId, cancellationToken);
|
||||
return MapToDto(payment, refunds);
|
||||
}
|
||||
|
||||
private static PaymentDto MapToDto(PaymentRecord payment, IReadOnlyList<PaymentRefundRecord> refunds) => new()
|
||||
{
|
||||
Id = payment.Id,
|
||||
TenantId = payment.TenantId,
|
||||
OrderId = payment.OrderId,
|
||||
Method = payment.Method,
|
||||
Status = payment.Status,
|
||||
Amount = payment.Amount,
|
||||
TradeNo = payment.TradeNo,
|
||||
ChannelTransactionId = payment.ChannelTransactionId,
|
||||
PaidAt = payment.PaidAt,
|
||||
Remark = payment.Remark,
|
||||
Payload = payment.Payload,
|
||||
Refunds = refunds.Select(x => new PaymentRefundDto
|
||||
{
|
||||
Id = x.Id,
|
||||
PaymentRecordId = x.PaymentRecordId,
|
||||
OrderId = x.OrderId,
|
||||
Amount = x.Amount,
|
||||
ChannelRefundId = x.ChannelRefundId,
|
||||
Status = x.Status,
|
||||
Payload = x.Payload
|
||||
}).ToList()
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Application.App.Payments.Queries;
|
||||
using TakeoutSaaS.Domain.Payments.Repositories;
|
||||
using TakeoutSaaS.Shared.Abstractions.Tenancy;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Handlers;
|
||||
|
||||
/// <summary>
|
||||
/// 支付记录列表查询处理器。
|
||||
/// </summary>
|
||||
public sealed class SearchPaymentsQueryHandler(
|
||||
IPaymentRepository paymentRepository,
|
||||
ITenantProvider tenantProvider)
|
||||
: IRequestHandler<SearchPaymentsQuery, IReadOnlyList<PaymentDto>>
|
||||
{
|
||||
private readonly IPaymentRepository _paymentRepository = paymentRepository;
|
||||
private readonly ITenantProvider _tenantProvider = tenantProvider;
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<IReadOnlyList<PaymentDto>> Handle(SearchPaymentsQuery request, CancellationToken cancellationToken)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetCurrentTenantId();
|
||||
var payments = await _paymentRepository.SearchAsync(tenantId, request.Status, cancellationToken);
|
||||
|
||||
if (request.OrderId.HasValue)
|
||||
{
|
||||
payments = payments.Where(x => x.OrderId == request.OrderId.Value).ToList();
|
||||
}
|
||||
|
||||
return payments.Select(payment => new PaymentDto
|
||||
{
|
||||
Id = payment.Id,
|
||||
TenantId = payment.TenantId,
|
||||
OrderId = payment.OrderId,
|
||||
Method = payment.Method,
|
||||
Status = payment.Status,
|
||||
Amount = payment.Amount,
|
||||
TradeNo = payment.TradeNo,
|
||||
ChannelTransactionId = payment.ChannelTransactionId,
|
||||
PaidAt = payment.PaidAt,
|
||||
Remark = payment.Remark,
|
||||
Payload = payment.Payload
|
||||
}).ToList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using TakeoutSaaS.Application.App.Payments.Commands;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Domain.Payments.Entities;
|
||||
using TakeoutSaaS.Domain.Payments.Repositories;
|
||||
using TakeoutSaaS.Shared.Abstractions.Tenancy;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Handlers;
|
||||
|
||||
/// <summary>
|
||||
/// 更新支付记录命令处理器。
|
||||
/// </summary>
|
||||
public sealed class UpdatePaymentCommandHandler(
|
||||
IPaymentRepository paymentRepository,
|
||||
ITenantProvider tenantProvider,
|
||||
ILogger<UpdatePaymentCommandHandler> logger)
|
||||
: IRequestHandler<UpdatePaymentCommand, PaymentDto?>
|
||||
{
|
||||
private readonly IPaymentRepository _paymentRepository = paymentRepository;
|
||||
private readonly ITenantProvider _tenantProvider = tenantProvider;
|
||||
private readonly ILogger<UpdatePaymentCommandHandler> _logger = logger;
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<PaymentDto?> Handle(UpdatePaymentCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetCurrentTenantId();
|
||||
var existing = await _paymentRepository.FindByIdAsync(request.PaymentId, tenantId, cancellationToken);
|
||||
if (existing == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
existing.OrderId = request.OrderId;
|
||||
existing.Method = request.Method;
|
||||
existing.Status = request.Status;
|
||||
existing.Amount = request.Amount;
|
||||
existing.TradeNo = request.TradeNo?.Trim();
|
||||
existing.ChannelTransactionId = request.ChannelTransactionId?.Trim();
|
||||
existing.PaidAt = request.PaidAt;
|
||||
existing.Remark = request.Remark?.Trim();
|
||||
existing.Payload = request.Payload;
|
||||
|
||||
await _paymentRepository.UpdatePaymentAsync(existing, cancellationToken);
|
||||
await _paymentRepository.SaveChangesAsync(cancellationToken);
|
||||
_logger.LogInformation("更新支付记录 {PaymentId}", existing.Id);
|
||||
|
||||
var refunds = await _paymentRepository.GetRefundsAsync(existing.Id, tenantId, cancellationToken);
|
||||
return MapToDto(existing, refunds);
|
||||
}
|
||||
|
||||
private static PaymentDto MapToDto(PaymentRecord payment, IReadOnlyList<PaymentRefundRecord> refunds) => new()
|
||||
{
|
||||
Id = payment.Id,
|
||||
TenantId = payment.TenantId,
|
||||
OrderId = payment.OrderId,
|
||||
Method = payment.Method,
|
||||
Status = payment.Status,
|
||||
Amount = payment.Amount,
|
||||
TradeNo = payment.TradeNo,
|
||||
ChannelTransactionId = payment.ChannelTransactionId,
|
||||
PaidAt = payment.PaidAt,
|
||||
Remark = payment.Remark,
|
||||
Payload = payment.Payload,
|
||||
Refunds = refunds.Select(x => new PaymentRefundDto
|
||||
{
|
||||
Id = x.Id,
|
||||
PaymentRecordId = x.PaymentRecordId,
|
||||
OrderId = x.OrderId,
|
||||
Amount = x.Amount,
|
||||
ChannelRefundId = x.ChannelRefundId,
|
||||
Status = x.Status,
|
||||
Payload = x.Payload
|
||||
}).ToList()
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// 获取支付记录详情。
|
||||
/// </summary>
|
||||
public sealed class GetPaymentByIdQuery : IRequest<PaymentDto?>
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付记录 ID。
|
||||
/// </summary>
|
||||
public long PaymentId { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Payments.Dto;
|
||||
using TakeoutSaaS.Domain.Payments.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Payments.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// 支付记录列表查询。
|
||||
/// </summary>
|
||||
public sealed class SearchPaymentsQuery : IRequest<IReadOnlyList<PaymentDto>>
|
||||
{
|
||||
/// <summary>
|
||||
/// 订单 ID(可选)。
|
||||
/// </summary>
|
||||
public long? OrderId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付状态。
|
||||
/// </summary>
|
||||
public PaymentStatus? Status { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user