Blame view

service/LqSalaryCalculationService/Models/SalaryCalculationConfig.cs 1.9 KB
3fcf01d8   hexiaodong   hxd202509112049
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
  using System;
  using System.Collections.Generic;
  
  namespace LqSalaryCalculationService.Models
  {
      /// <summary>
      /// 工资核算配置模型
      /// </summary>
      public class SalaryCalculationConfig
      {
          /// <summary>
          /// 计算月份
          /// </summary>
          public string CalculationMonth { get; set; } = string.Empty;
  
          /// <summary>
          /// 输出路径
          /// </summary>
          public string OutputPath { get; set; } = "./output";
  
          /// <summary>
          /// 备份路径
          /// </summary>
          public string BackupPath { get; set; } = "./backup";
  
          /// <summary>
          /// 日志路径
          /// </summary>
          public string LogPath { get; set; } = "./logs";
  
          /// <summary>
          /// 是否启用邮件通知
          /// </summary>
          public bool EnableEmailNotification { get; set; } = true;
  
          /// <summary>
          /// 邮件设置
          /// </summary>
          public EmailSettings EmailSettings { get; set; } = new EmailSettings();
      }
  
      /// <summary>
      /// 邮件设置
      /// </summary>
      public class EmailSettings
      {
          /// <summary>
          /// SMTP服务器
          /// </summary>
          public string SmtpServer { get; set; } = string.Empty;
  
          /// <summary>
          /// SMTP端口
          /// </summary>
          public int SmtpPort { get; set; } = 587;
  
          /// <summary>
          /// 用户名
          /// </summary>
          public string Username { get; set; } = string.Empty;
  
          /// <summary>
          /// 密码
          /// </summary>
          public string Password { get; set; } = string.Empty;
  
          /// <summary>
          /// 发件人邮箱
          /// </summary>
          public string FromEmail { get; set; } = string.Empty;
  
          /// <summary>
          /// 收件人邮箱列表
          /// </summary>
          public List<string> ToEmails { get; set; } = new List<string>();
      }
  }