84 lines
1.8 KiB
Java
84 lines
1.8 KiB
Java
package com.ruoyi.jysystem.config;
|
||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
import org.springframework.stereotype.Component;
|
||
|
||
/**
|
||
* 业务短信通知配置(application.yml 中 sms 节点)
|
||
*/
|
||
@Component
|
||
@ConfigurationProperties(prefix = "sms")
|
||
public class SmsProperties
|
||
{
|
||
/** 短信签名 */
|
||
private String signName = "金华觉远创智科技";
|
||
|
||
/** 配片订单分配至镜片厂(模板变量 code=订单号) */
|
||
private SceneConfig assignOrder = new SceneConfig();
|
||
|
||
/** 配片订单发货通知(模板变量 code、expressCompany、expressNo) */
|
||
private SceneConfig shipOrder = new SceneConfig();
|
||
|
||
public String getSignName()
|
||
{
|
||
return signName;
|
||
}
|
||
|
||
public void setSignName(String signName)
|
||
{
|
||
this.signName = signName;
|
||
}
|
||
|
||
public SceneConfig getAssignOrder()
|
||
{
|
||
return assignOrder;
|
||
}
|
||
|
||
public void setAssignOrder(SceneConfig assignOrder)
|
||
{
|
||
this.assignOrder = assignOrder;
|
||
}
|
||
|
||
public SceneConfig getShipOrder()
|
||
{
|
||
return shipOrder;
|
||
}
|
||
|
||
public void setShipOrder(SceneConfig shipOrder)
|
||
{
|
||
this.shipOrder = shipOrder;
|
||
}
|
||
|
||
/**
|
||
* 单一场景短信配置
|
||
*/
|
||
public static class SceneConfig
|
||
{
|
||
/** 是否启用 */
|
||
private boolean enabled = true;
|
||
|
||
/** 短信模板 Code */
|
||
private String template = "";
|
||
|
||
public boolean isEnabled()
|
||
{
|
||
return enabled;
|
||
}
|
||
|
||
public void setEnabled(boolean enabled)
|
||
{
|
||
this.enabled = enabled;
|
||
}
|
||
|
||
public String getTemplate()
|
||
{
|
||
return template;
|
||
}
|
||
|
||
public void setTemplate(String template)
|
||
{
|
||
this.template = template;
|
||
}
|
||
}
|
||
}
|