TrainingFileDto.cs 1.49 KB
namespace FoodLabeling.Application.Contracts.Dtos.Training;

public class TrainingFileDto
{
    public string Id { get; set; } = string.Empty;

    public string CategoryId { get; set; } = string.Empty;

    public string FileName { get; set; } = string.Empty;

    public string FileUrl { get; set; } = string.Empty;

    /// <summary>image / doc / other</summary>
    public string FileType { get; set; } = "other";

    public long FileSize { get; set; }

    public int OrderNum { get; set; }

    public string AppliedPartnerType { get; set; } = "ALL";

    /// <summary>Company 展示(ALL 时为 All Companies)</summary>
    public string Company { get; set; } = string.Empty;

    public List<string> PartnerIds { get; set; } = new();

    /// <summary>与 <see cref="PartnerIds"/> 相同</summary>
    public List<string> CompanyIds { get; set; } = new();

    public string AppliedRegionType { get; set; } = "ALL";

    /// <summary>Region 展示</summary>
    public string Region { get; set; } = string.Empty;

    public List<string> RegionIds { get; set; } = new();

    /// <summary>与 <see cref="RegionIds"/> 相同</summary>
    public List<string> GroupIds { get; set; } = new();

    public string AvailabilityType { get; set; } = "ALL";

    /// <summary>Location 展示</summary>
    public string Location { get; set; } = string.Empty;

    public List<string> LocationIds { get; set; } = new();

    public DateTime CreationTime { get; set; }

    public DateTime? LastModificationTime { get; set; }
}