New file |
| | |
| | | package com.ruoyi.common.config; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | @Data |
| | | @Component |
| | | @ConfigurationProperties(prefix = "sms") |
| | | public class SmsProperties { |
| | | |
| | | public static final String ENABLE_KEY = "sms.enable"; |
| | | |
| | | private Boolean enable; |
| | | |
| | | private String appId; |
| | | |
| | | private String secretid; |
| | | |
| | | private String secretkey; |
| | | /** |
| | | * 短信签名 |
| | | */ |
| | | private String sign; |
| | | |
| | | /** |
| | | * 账单提醒 ,同一个用户离上次发送短信的最小间隔 |
| | | * 单位分钟 |
| | | */ |
| | | private Integer billSmsDelayPeriod = 60; |
| | | /** |
| | | * 账单提醒 ,同一个用户离上次发送邮件的最小间隔 |
| | | * 单位分钟 |
| | | */ |
| | | private Integer billMailDelayPeriod = 60; |
| | | |
| | | |
| | | } |