feat: 套餐发布状态与可见/可购开关
This commit is contained in:
@@ -65,10 +65,25 @@ public sealed record CreateTenantPackageCommand : IRequest<TenantPackageDto>
|
||||
public string? FeaturePoliciesJson { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否可售。
|
||||
/// 是否仍启用(平台控制)。
|
||||
/// </summary>
|
||||
public bool IsActive { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否对外可见(展示页/套餐列表可见性)。
|
||||
/// </summary>
|
||||
public bool IsPublicVisible { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许新租户购买/选择(仅影响新购)。
|
||||
/// </summary>
|
||||
public bool IsAllowNewTenantPurchase { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 发布状态(草稿/已发布)。
|
||||
/// </summary>
|
||||
public TenantPackagePublishStatus PublishStatus { get; init; } = TenantPackagePublishStatus.Published;
|
||||
|
||||
/// <summary>
|
||||
/// 展示排序,数值越小越靠前。
|
||||
/// </summary>
|
||||
|
||||
@@ -70,10 +70,25 @@ public sealed record UpdateTenantPackageCommand : IRequest<TenantPackageDto?>
|
||||
public string? FeaturePoliciesJson { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否可售。
|
||||
/// 是否仍启用(平台控制)。
|
||||
/// </summary>
|
||||
public bool IsActive { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否对外可见(展示页/套餐列表可见性)。
|
||||
/// </summary>
|
||||
public bool IsPublicVisible { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许新租户购买/选择(仅影响新购)。
|
||||
/// </summary>
|
||||
public bool IsAllowNewTenantPurchase { get; init; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 发布状态(草稿/已发布)。
|
||||
/// </summary>
|
||||
public TenantPackagePublishStatus PublishStatus { get; init; } = TenantPackagePublishStatus.Published;
|
||||
|
||||
/// <summary>
|
||||
/// 展示排序,数值越小越靠前。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user