ITrainingFileScopeInput.cs 1.03 KB
namespace FoodLabeling.Application.Contracts.Dtos.Common;

/// <summary>
/// 培训文件创建/编辑入参中的 Company / Region / Location 适用范围字段。
/// </summary>
public interface ITrainingFileScopeInput : ILabelEntityPartnerScopeInput
{
    /// <summary>适用 Region:ALL / SPECIFIED</summary>
    string? AppliedRegionType { get; }

    /// <summary>适用 Region(<c>fl_group.Id</c>);与 <see cref="GroupIds"/> 合并;可含 <c>ALL</c></summary>
    List<string>? RegionIds { get; }

    /// <summary>与 <see cref="RegionIds"/> 相同;可含 <c>ALL</c></summary>
    List<string>? GroupIds { get; }

    /// <summary>适用 Location:ALL / SPECIFIED(与 <see cref="AppliedLocationType"/> 二选一)</summary>
    string? AvailabilityType { get; }

    /// <summary>适用 Location:ALL / SPECIFIED(<see cref="AvailabilityType"/> 别名)</summary>
    string? AppliedLocationType { get; }

    /// <summary>适用门店(<c>location.Id</c>);可含 <c>ALL</c></summary>
    List<string>? LocationIds { get; }
}