feat: add register
This commit is contained in:
@@ -52,7 +52,7 @@ class SwaggerDocRegister extends Subscriber<InstancesChangeEvent>
|
||||
@Autowired
|
||||
private DiscoveryClient discoveryClient;
|
||||
|
||||
private final static String[] EXCLUDE_ROUTES = new String[] { "wfc-gateway", "wfc-auth", "wfc-file", "wfc-monitor" };
|
||||
private final static String[] EXCLUDE_ROUTES = new String[] { "wfc-gateway", "wfc-file", "wfc-monitor" };
|
||||
|
||||
public SwaggerDocRegister(SwaggerUiConfigProperties swaggerUiConfigProperties, DiscoveryClient discoveryClient)
|
||||
{
|
||||
|
||||
@@ -15,10 +15,15 @@ import org.springframework.context.annotation.Configuration;
|
||||
public class CaptchaProperties
|
||||
{
|
||||
/**
|
||||
* 验证码开关
|
||||
* 图片验证码开关
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* 邮箱验证码开关
|
||||
*/
|
||||
private Boolean mailEnabled;
|
||||
|
||||
/**
|
||||
* 验证码类型(math 数组计算 char 字符)
|
||||
*/
|
||||
@@ -43,4 +48,12 @@ public class CaptchaProperties
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Boolean getMailEnabled() {
|
||||
return mailEnabled;
|
||||
}
|
||||
|
||||
public void setMailEnabled(Boolean mailEnabled) {
|
||||
this.mailEnabled = mailEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user