无关风月
1 天以前 f84e186541e7991147d2b09d1b10247d281c2996
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package com.ruoyi.system.utils.wx.model;
 
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * @author xiaochen
 * @ClassName WeixinProperties
 * @Description
 * @date 2024-08-14 13:55
 */
@ToString
@Component
@ConfigurationProperties(prefix = "wx.conf")
public class WeixinProperties {
    /**
     * 默认开启
     */
    private boolean enabled = true;
    /**
     * 获取 App ID
     *
     * @return App ID
     */
    private String appId;
    /**
     * 获取 Mch ID
     *
     * @return Mch ID
     */
    private String mchId;
 
    /**
     * 获取 secret ID
     *
     * @return secret ID
     */
    private String secretId;
    /**
     * 任务驳回通知 || 任务审核通过通知
     *
     * @return secret ID
     */
    private String taskResultTemplateId;
    /**
     * 每日工作未完成提醒
     *
     * @return secret ID
     */
    private String dayWorkTemplateId;
    /**
     * 申诉结果通知
     *
     * @return secret ID
     */
    private String appealResultTemplateId;
    /**
     * 待审核提醒
     *
     * @return secret ID
     */
    private String pendApprovalTemplateId;
    /**
     * 审核抄送通知
     *
     * @return secret ID
     */
    private String makeCopyTemplateId;
    /**
     * 问题整改通知
     *
     * @return secret ID
     */
    private String problemRectificationTemplateId;
 
    public String getDayWorkTemplateId() {
        return dayWorkTemplateId;
    }
 
    public void setDayWorkTemplateId(String dayWorkTemplateId) {
        this.dayWorkTemplateId = dayWorkTemplateId;
    }
 
    public String getAppealResultTemplateId() {
        return appealResultTemplateId;
    }
 
    public void setAppealResultTemplateId(String appealResultTemplateId) {
        this.appealResultTemplateId = appealResultTemplateId;
    }
 
    public String getPendApprovalTemplateId() {
        return pendApprovalTemplateId;
    }
 
    public void setPendApprovalTemplateId(String pendApprovalTemplateId) {
        this.pendApprovalTemplateId = pendApprovalTemplateId;
    }
 
    public String getMakeCopyTemplateId() {
        return makeCopyTemplateId;
    }
 
    public void setMakeCopyTemplateId(String makeCopyTemplateId) {
        this.makeCopyTemplateId = makeCopyTemplateId;
    }
 
    public String getProblemRectificationTemplateId() {
        return problemRectificationTemplateId;
    }
 
    public void setProblemRectificationTemplateId(String problemRectificationTemplateId) {
        this.problemRectificationTemplateId = problemRectificationTemplateId;
    }
 
    public String getTaskResultTemplateId() {
        return taskResultTemplateId;
    }
 
    public void setTaskResultTemplateId(String taskResultTemplateId) {
        this.taskResultTemplateId = taskResultTemplateId;
    }
 
    public String getSecretId() {
        return secretId;
    }
 
    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }
 
    /**
     * HTTP(S) 连接超时时间,单位毫秒
     *
     */
    public int getHttpConnectTimeoutMs() {
        return 6 * 1000;
    }
 
    /**
     * HTTP(S) 读数据超时时间,单位毫秒
     */
    public int getHttpReadTimeoutMs() {
        return 8 * 1000;
    }
 
    public String getAppId() {
        return appId;
    }
 
    public void setAppId(String appId) {
        this.appId = appId;
    }
 
    public String getMchId() {
        return mchId;
    }
 
    public void setMchId(String mchId) {
        this.mchId = mchId;
    }
}