@ConfigurationProperties(prefix="herodotus.sms") public class SmsProperties extends Object
Description: 短信验证码配置属性
| 构造器和说明 |
|---|
SmsProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.herodotus.engine.sms.core.enums.SmsSupplier |
getDefaultChannel() |
Boolean |
getEnabled() |
Duration |
getExpire() |
int |
getLength() |
Boolean |
getSandbox() |
String |
getTestCode() |
String |
getVerificationCodeTemplateId() |
void |
setDefaultChannel(cn.herodotus.engine.sms.core.enums.SmsSupplier defaultChannel) |
void |
setEnabled(Boolean enabled) |
void |
setExpire(Duration expire) |
void |
setLength(int length) |
void |
setSandbox(Boolean sandbox) |
void |
setTestCode(String testCode) |
void |
setVerificationCodeTemplateId(String verificationCodeTemplateId) |
String |
toString() |
public Duration getExpire()
public void setExpire(Duration expire)
public int getLength()
public void setLength(int length)
public cn.herodotus.engine.sms.core.enums.SmsSupplier getDefaultChannel()
public void setDefaultChannel(cn.herodotus.engine.sms.core.enums.SmsSupplier defaultChannel)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public Boolean getSandbox()
public void setSandbox(Boolean sandbox)
public String getTestCode()
public void setTestCode(String testCode)
public String getVerificationCodeTemplateId()
public void setVerificationCodeTemplateId(String verificationCodeTemplateId)
Copyright © 2022. All rights reserved.