ExportExcelAttribute.cs 596 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Hotline.Share.Attributes;
  7. public class ExportExcelAttribute : Attribute
  8. {
  9. /// <summary>
  10. /// 文件名称
  11. /// </summary>
  12. public string FileName { get; }
  13. public string? TotalName { get; }
  14. public ExportExcelAttribute(string fileName)
  15. {
  16. FileName = fileName;
  17. TotalName = null;
  18. }
  19. public ExportExcelAttribute(string fileName, string? totalName)
  20. {
  21. FileName = fileName;
  22. TotalName = totalName;
  23. }
  24. }