修改systemconfig 取不到isAddRootCompany 和isAdmin的值的问题

This commit is contained in:
weiweiw 2024-12-01 15:15:40 +08:00
parent 0c882d398f
commit 2e560ba205
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package com.bonus.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
@ -23,15 +24,15 @@ public class SystemConfig {
/**
*增加配置以支持增加根节点公司的添加和删除功能
*/
private boolean isAddRootCompany;
private boolean addRootCompany;
/**
* token过期时间
*/
private Long tokenTime;
/**
* 是否是管理员登录
* 是否是管理员登录,如果启用超级管理员则除了登录时需要系统验证码还需要短信验证码
*/
private boolean isAdmin;
private boolean admin;
/**
* 注册配置
*/