TrainingFileUploadInputVo.cs 2.01 KB
using FoodLabeling.Application.Contracts.Dtos.Common;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace FoodLabeling.Application.Contracts.Dtos.Training;

public class TrainingFileUploadInputVo : ITrainingFileScopeInput
{
    [FromForm(Name = "file")]
    public IFormFile File { get; set; } = default!;

    [FromForm(Name = "categoryId")]
    public string CategoryId { get; set; } = string.Empty;

    [FromForm(Name = "orderNum")]
    public int OrderNum { get; set; }

    /// <summary>适用 Company:ALL / SPECIFIED</summary>
    [FromForm(Name = "appliedPartnerType")]
    public string? AppliedPartnerType { get; set; }

    /// <summary>适用 Company(<c>fl_partner.Id</c>);可含 <c>ALL</c></summary>
    [FromForm(Name = "partnerIds")]
    public List<string>? PartnerIds { get; set; }

    /// <summary>与 <see cref="PartnerIds"/> 相同;可含 <c>ALL</c></summary>
    [FromForm(Name = "companyIds")]
    public List<string>? CompanyIds { get; set; }

    /// <summary>适用 Region:ALL / SPECIFIED</summary>
    [FromForm(Name = "appliedRegionType")]
    public string? AppliedRegionType { get; set; }

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

    /// <summary>与 <see cref="RegionIds"/> 相同;可含 <c>ALL</c></summary>
    [FromForm(Name = "groupIds")]
    public List<string>? GroupIds { get; set; }

    /// <summary>适用 Location:ALL / SPECIFIED</summary>
    [FromForm(Name = "availabilityType")]
    public string? AvailabilityType { get; set; }

    /// <summary>适用 Location:ALL / SPECIFIED(<see cref="AvailabilityType"/> 别名)</summary>
    [FromForm(Name = "appliedLocationType")]
    public string? AppliedLocationType { get; set; }

    /// <summary>适用门店(<c>location.Id</c>);可含 <c>ALL</c></summary>
    [FromForm(Name = "locationIds")]
    public List<string>? LocationIds { get; set; }
}