GenTable增加remark属性
This commit is contained in:
parent
4edd8fa101
commit
7e1b977b0c
Binary file not shown.
@ -116,7 +116,7 @@ management:
|
|||||||
logfile:
|
logfile:
|
||||||
external-file: ./logs/ruoyi-monitor.log
|
external-file: ./logs/ruoyi-monitor.log
|
||||||
|
|
||||||
--- # 监控中心配置
|
--- # 监控中心客户端配置
|
||||||
spring.boot.admin.client:
|
spring.boot.admin.client:
|
||||||
# 增加客户端开关
|
# 增加客户端开关
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -11,14 +11,15 @@ import com.mybatisflex.core.datasource.DataSourceProperty;
|
|||||||
public class Decipher implements DataSourceDecipher {
|
public class Decipher implements DataSourceDecipher {
|
||||||
@Override
|
@Override
|
||||||
public String decrypt(DataSourceProperty property, String value) {
|
public String decrypt(DataSourceProperty property, String value) {
|
||||||
//解密用户名,通过编码支持任意加密方式的解密
|
//解密数据源URL、用户名、密码,通过编码支持任意加密方式的解密
|
||||||
if (property == DataSourceProperty.USERNAME) {
|
|
||||||
return value.substring(0, 4);
|
String result = "";
|
||||||
|
|
||||||
|
switch (property) {
|
||||||
|
case URL -> result = value;
|
||||||
|
case USERNAME -> result = value.substring(0, 4);
|
||||||
|
case PASSWORD -> result = value.substring(0, 8);
|
||||||
}
|
}
|
||||||
//解密密码
|
return result;
|
||||||
else if (property == DataSourceProperty.PASSWORD) {
|
|
||||||
return value.substring(0, 8);
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,6 +97,9 @@ public class GenTable extends BaseEntity
|
|||||||
/** 上级菜单名称字段 */
|
/** 上级菜单名称字段 */
|
||||||
private String parentMenuName;
|
private String parentMenuName;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
public Long getTableId()
|
public Long getTableId()
|
||||||
{
|
{
|
||||||
return tableId;
|
return tableId;
|
||||||
@ -371,4 +374,12 @@ public class GenTable extends BaseEntity
|
|||||||
}
|
}
|
||||||
return StringUtils.equalsAnyIgnoreCase(javaField, GenConstants.BASE_ENTITY);
|
return StringUtils.equalsAnyIgnoreCase(javaField, GenConstants.BASE_ENTITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user