admin/src/Oms.Application/Dtos/Channels/AutoTriggerImportInput.cs
zzh d5d6305f9c
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
feat: 自动触发规则支持 Excel 导入与模板下载
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-12 15:31:19 +08:00

26 lines
640 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>
/// 自动触发规则 Excel 导入入参。
/// </summary>
public class AutoTriggerImportInput
{
/// <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";
}
}