admin/src/Oms.Application/Dtos/Channels/KpiAreaInfoImportInput.cs
2026-10-07 17:34:31 +08:00

31 lines
769 B
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.

using Microsoft.AspNetCore.Http;
namespace Oms.Application.Dtos.Channels;
/// <summary>
/// KPI 分区明细 Excel 导入入参。
/// </summary>
public class KpiAreaInfoImportInput
{
/// <summary>
/// 分区主键。
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 导入模式:incremental=增量(跳过重复);full=全量(先清空本分区明细再导入)。
/// </summary>
public string ImportMode { get; set; } = ImportModes.Incremental;
/// <summary>
/// Excel 文件。
/// </summary>
public IFormFile File { get; set; } = null!;
public static class ImportModes
{
public const string Incremental = "incremental";
public const string Full = "full";
}
}