refactor: 清理平台表述并统一为系统
This commit is contained in:
@@ -30,7 +30,7 @@ public sealed class CreatePaymentCommand : IRequest<PaymentDto>
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// 系统交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; set; }
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public sealed record UpdatePaymentCommand : IRequest<PaymentDto?>
|
||||
public decimal Amount { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// 系统交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; init; }
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public sealed class PaymentDto
|
||||
public decimal Amount { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 平台交易号。
|
||||
/// 系统交易号。
|
||||
/// </summary>
|
||||
public string? TradeNo { get; init; }
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public sealed class ToggleBusinessStatusCommandHandler(
|
||||
|
||||
if (store.BusinessStatus == StoreBusinessStatus.ForceClosed)
|
||||
{
|
||||
throw new BusinessException(ErrorCodes.Conflict, "门店已被平台强制关闭,无法切换");
|
||||
throw new BusinessException(ErrorCodes.Conflict, "门店已被风控强制关闭,无法切换");
|
||||
}
|
||||
|
||||
// 2. (空行后) 应用状态变更
|
||||
|
||||
@@ -71,7 +71,7 @@ public sealed class TenantPackageDto
|
||||
public string? FeaturePoliciesJson { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否仍启用(平台控制)。
|
||||
/// 是否仍启用(系统控制)。
|
||||
/// </summary>
|
||||
public bool IsActive { get; init; }
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed class CreateTenantAnnouncementCommandHandler(
|
||||
/// <returns>公告 DTO。</returns>
|
||||
public async Task<TenantAnnouncementDto> Handle(CreateTenantAnnouncementCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
// 1. 校验租户上下文(租户端禁止跨租户/平台公告)
|
||||
// 1. 校验租户上下文(租户端禁止跨租户/系统公告)
|
||||
var currentTenantId = tenantProvider.GetCurrentTenantId();
|
||||
if (currentTenantId <= 0)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public sealed class CreateTenantAnnouncementCommandHandler(
|
||||
// 4. (空行后) 校验公告发布范围:租户端仅允许租户公告
|
||||
if (request.PublisherScope != PublisherScope.Tenant)
|
||||
{
|
||||
throw new BusinessException(ErrorCodes.ValidationFailed, "租户端不允许创建平台公告");
|
||||
throw new BusinessException(ErrorCodes.ValidationFailed, "租户端仅允许创建租户公告");
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(request.TargetType))
|
||||
|
||||
@@ -35,7 +35,7 @@ public sealed class CreateAnnouncementCommandValidator : AbstractValidator<Creat
|
||||
|
||||
RuleFor(x => x.PublisherScope)
|
||||
.Equal(PublisherScope.Tenant)
|
||||
.WithMessage("租户端不允许创建平台公告");
|
||||
.WithMessage("租户端仅允许创建租户公告");
|
||||
|
||||
RuleFor(x => x.EffectiveFrom)
|
||||
.LessThan(x => x.EffectiveTo!.Value)
|
||||
|
||||
Reference in New Issue
Block a user