Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Coupons/FullReduction/Dto/FullReductionRulesDto.cs
MSuMshk 5a6da9be0c
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m50s
feat(marketing): add full reduction campaign api module
2026-02-28 15:46:21 +08:00

63 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace TakeoutSaaS.Application.App.Coupons.FullReduction.Dto;
/// <summary>
/// 满减活动规则 DTO。
/// </summary>
public sealed class FullReductionRulesDto
{
/// <summary>
/// 活动类型reduce/gift/second_half
/// </summary>
public string ActivityType { get; init; } = "reduce";
/// <summary>
/// 满减阶梯。
/// </summary>
public IReadOnlyList<FullReductionTierRuleDto> ReduceTiers { get; init; } = [];
/// <summary>
/// 满赠规则。
/// </summary>
public FullReductionGiftRuleDto? GiftRule { get; init; }
/// <summary>
/// 第二份半价规则。
/// </summary>
public FullReductionSecondHalfRuleDto? SecondHalfRule { get; init; }
/// <summary>
/// 适用渠道。
/// </summary>
public IReadOnlyList<string> Channels { get; init; } = [];
/// <summary>
/// 门店范围模式all/stores
/// </summary>
public string StoreScopeMode { get; init; } = "all";
/// <summary>
/// 门店范围 ID。
/// </summary>
public IReadOnlyList<long> StoreIds { get; init; } = [];
/// <summary>
/// 选品基准门店 ID。
/// </summary>
public long ScopeStoreId { get; init; }
/// <summary>
/// 是否可叠加优惠券。
/// </summary>
public bool StackWithCoupon { get; init; }
/// <summary>
/// 活动说明。
/// </summary>
public string? Description { get; init; }
/// <summary>
/// 统计指标。
/// </summary>
public FullReductionMetricsDto Metrics { get; init; } = new();
}