导出模板
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2024-09-23 16:15:51 +08:00
parent 92e1a3f90b
commit 303cb54e7a
8 changed files with 242 additions and 3 deletions
@@ -1,6 +1,7 @@
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.Hosting;
using MiniExcelLibs.Attributes;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
@@ -125,6 +126,40 @@ namespace IRaCIS.Application.Contracts
}
/// <summary>
/// 导出文件
/// </summary>
public class ExportTemplateAsyncDto
{
/// <summary>
/// 模板Code
/// </summary>
public string TemplateCode { get; set; }
/// <summary>
/// 导出的文件名
/// </summary>
public string ExportFileName { get; set; }
/// <summary>
/// 数据
/// </summary>
public object Data { get; set; }
}
public class ExportTemplateServiceDto : ExportTemplateAsyncDto
{
public IRepository<CommonDocument> commonDocumentRepository { get; set; }
public IWebHostEnvironment hostEnvironment { get; set; }
public bool IsEnglish { get; set; }
}
public class ExcelExportInfo : TrialSelectDTO
{
public string CurrentTime { get; set; }