ExportExcelAttribute.cs 570 B

1234567891011121314151617181920212223242526
  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. }
  18. public ExportExcelAttribute(string fileName, string? totalName)
  19. {
  20. FileName = fileName;
  21. TotalName = totalName;
  22. }
  23. }