修改systemconfig 取不到isAddRootCompany 和isAdmin的值的问题
This commit is contained in:
parent
0c882d398f
commit
2e560ba205
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.config;
|
package com.bonus.config;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
@ -23,15 +24,15 @@ public class SystemConfig {
|
||||||
/**
|
/**
|
||||||
*增加配置以支持增加根节点公司的添加和删除功能
|
*增加配置以支持增加根节点公司的添加和删除功能
|
||||||
*/
|
*/
|
||||||
private boolean isAddRootCompany;
|
private boolean addRootCompany;
|
||||||
/**
|
/**
|
||||||
* token过期时间
|
* token过期时间
|
||||||
*/
|
*/
|
||||||
private Long tokenTime;
|
private Long tokenTime;
|
||||||
/**
|
/**
|
||||||
* 是否是管理员登录
|
* 是否是管理员登录,如果启用超级管理员,则除了登录时需要系统验证码还需要短信验证码
|
||||||
*/
|
*/
|
||||||
private boolean isAdmin;
|
private boolean admin;
|
||||||
/**
|
/**
|
||||||
* 注册配置
|
* 注册配置
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue