This commit is contained in:
2023-06-05 17:19:25 +08:00
parent f2457ff1d8
commit bd2c01fe40
6 changed files with 120 additions and 1 deletions

View File

@ -2,6 +2,13 @@ package com.qiaoba.common.database.properties;
import lombok.Data;
/**
* 数据源-主库-信息
*
* @author ailanyin
* @version 1.0
* @since 2023-04-23 15:37:43
*/
@Data
public class MasterInfo {
private String driver;

View File

@ -2,9 +2,28 @@ package com.qiaoba.common.database.properties;
import lombok.Data;
/**
* 数据源连接池信息
*
* @author ailanyin
* @version 1.0
* @since 2023-04-23 15:37:43
*/
@Data
public class PoolInfo {
/**
* 初始连接数
*/
private Integer init;
/**
* 最小空闲数
*/
private Integer min;
/**
* 最大空闲数
*/
private Integer max;
}
}

View File

@ -2,6 +2,13 @@ package com.qiaoba.common.database.properties;
import lombok.Data;
/**
* 数据源-从库-信息
*
* @author ailanyin
* @version 1.0
* @since 2023-04-23 15:37:43
*/
@Data
public class SlaveInfo {
private Boolean isUse = true;
@ -9,6 +16,10 @@ public class SlaveInfo {
private String url;
private String username;
private String password;
/**
* 权重
*/
private Integer weight = 1;
private PoolInfo pool;
}

View File

@ -0,0 +1,37 @@
package com.qiaoba.module.tenant.enums;
import lombok.Getter;
/**
* 租户类型
*
* @author ailanyin
* @version 1.0
* @since 2023/6/5 16:33
*/
@Getter
public enum TenantTypeEnum {
/**
* 字段模式-隔离级别最小
*/
COLUMN("column", "字段模式"),
/**
* 数据库模式-隔离级别中等
*/
DATABASE("database", "数据库模式"),
/**
* 数据源模式-隔离级别最大
*/
DATASOURCE("datasource", "数据源模式");
private final String type;
private final String info;
TenantTypeEnum(String code, String info) {
this.type = code;
this.info = info;
}
}

View File

@ -0,0 +1,38 @@
package com.qiaoba.module.tenant.handle;
import org.springframework.stereotype.Component;
/**
* MysqlHandler
*
* @author ailanyin
* @version 1.0
* @since 2023/6/5 16:28
*/
@Component
public class MysqlHandler {
/**
* 处理字段模式
*/
private void handleColumnType() {
}
/**
* 处理数据库模式
*/
private void handleDatabaseType() {
}
/**
* 处理数据源模式
*/
private void handleDatasourceType() {
}
}

View File

@ -0,0 +1,7 @@
INSERT INTO `sys_config` VALUES ('{}', 'Token有效期', 'sys.token.expireTime', '96', 'Y', 'admin', '2023-05-25 13:22:50', 'admin', '2023-05-25 15:02:42', '单位:小时,仅支持正整数', '{}');
INSERT INTO `sys_config` VALUES ('{}', '账号黑名单开关', 'sys.account.blacklistOnOff', 'true', 'Y', 'admin', '2023-05-25 13:22:31', 'admin', '2023-05-25 13:57:14', 'true开启false关闭', '{}');
INSERT INTO `sys_config` VALUES ('{}', '账号注册开关', 'sys.account.registerUser', 'false', 'Y', 'admin', '2023-05-25 13:21:38', 'admin', '2023-05-25 15:07:00', 'true开启false关闭', '{}');
INSERT INTO `sys_config` VALUES ('{}', '登录验证码开关', 'sys.account.captchaOnOff', 'true', 'Y', 'admin', '2023-05-25 13:23:52', 'admin', '2023-06-05 13:43:00', 'true开启false关闭', '{}');
INSERT INTO `sys_config` VALUES ('{}', '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-light', 'Y', 'admin', '2022-08-15 18:01:28', 'admin', '2023-05-25 13:26:27', '深色主题theme-dark浅色主题theme-light', '{}');
INSERT INTO `sys_config` VALUES ('{}', '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2022-08-15 18:01:28', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', '{}');
INSERT INTO `sys_config` VALUES ('{}', '账号允许同时在线', 'sys.account.allowBothOnline', 'true', 'Y', 'admin', '2023-05-28 14:28:05', 'admin', '2023-05-28 15:39:48', 'true允许false禁止', '{}');