com.taotao.boot.sms.common.web.SmsWebmvcProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of taotao-boot-starter-sms-common Show documentation
Show all versions of taotao-boot-starter-sms-common Show documentation
taotao-boot-starter-sms-common
The newest version!
/*
* Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.taotao.boot.sms.common.web;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 短信Web配置
*
* @author shuigedeng
*/
@ConfigurationProperties(prefix = SmsWebmvcProperties.PREFIX)
public class SmsWebmvcProperties {
public static final String PREFIX = "taotao.boot.sms.web";
/** 默认基础路径 */
public static final String DEFAULT_BASE_PATH = "/sms";
/** 是否启用web端点 */
private boolean enable = false;
/** 基础路径 */
private String basePath = DEFAULT_BASE_PATH;
/** 是否启用验证码发送web端点 */
private boolean enableSend = true;
/** 是否启用验证码查询web端点 */
private boolean enableGet = true;
/** 是否启用验证码验证web端点 */
private boolean enableVerify = true;
/** 是否启用通知发送web端点 */
private boolean enableNotice = true;
public boolean isEnable() {
return enable;
}
public void setEnable(boolean enable) {
this.enable = enable;
}
public String getBasePath() {
return basePath;
}
public void setBasePath(String basePath) {
this.basePath = basePath;
}
public boolean isEnableSend() {
return enableSend;
}
public void setEnableSend(boolean enableSend) {
this.enableSend = enableSend;
}
public boolean isEnableGet() {
return enableGet;
}
public void setEnableGet(boolean enableGet) {
this.enableGet = enableGet;
}
public boolean isEnableVerify() {
return enableVerify;
}
public void setEnableVerify(boolean enableVerify) {
this.enableVerify = enableVerify;
}
public boolean isEnableNotice() {
return enableNotice;
}
public void setEnableNotice(boolean enableNotice) {
this.enableNotice = enableNotice;
}
}