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;
|
}
|
}
|