2
0

feat: add register

This commit is contained in:
caiyuchao
2024-11-27 18:36:18 +08:00
parent dd62a85f51
commit f13548d937
18 changed files with 212 additions and 36 deletions

View File

@@ -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)
{

View File

@@ -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;
}
}