mirror of https://gitee.com/stylefeng/roses
【7.0.4】更新loginUser和DataSourceApi
parent
1487792dd1
commit
c6f71380a7
|
@ -128,6 +128,11 @@ public class LoginUser implements Serializable {
|
||||||
*/
|
*/
|
||||||
private String tranLanguageCode = RuleConstants.CHINES_TRAN_LANGUAGE_CODE;
|
private String tranLanguageCode = RuleConstants.CHINES_TRAN_LANGUAGE_CODE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 租户的编码
|
||||||
|
*/
|
||||||
|
private String tenantCode;
|
||||||
|
|
||||||
public String getWsUrl() {
|
public String getWsUrl() {
|
||||||
AtomicReference<String> returnUrl = new AtomicReference<>(StrUtil.EMPTY);
|
AtomicReference<String> returnUrl = new AtomicReference<>(StrUtil.EMPTY);
|
||||||
Optional.ofNullable(this.wsUrl).ifPresent(url -> {
|
Optional.ofNullable(this.wsUrl).ifPresent(url -> {
|
||||||
|
|
|
@ -2,6 +2,7 @@ package cn.stylefeng.roses.kernel.dsctn.api;
|
||||||
|
|
||||||
import cn.stylefeng.roses.kernel.dsctn.api.exception.DatasourceContainerException;
|
import cn.stylefeng.roses.kernel.dsctn.api.exception.DatasourceContainerException;
|
||||||
import cn.stylefeng.roses.kernel.dsctn.api.pojo.DataSourceDto;
|
import cn.stylefeng.roses.kernel.dsctn.api.pojo.DataSourceDto;
|
||||||
|
import cn.stylefeng.roses.kernel.dsctn.api.pojo.request.DatabaseInfoRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据库连接的api
|
* 数据库连接的api
|
||||||
|
@ -22,4 +23,13 @@ public interface DataSourceApi {
|
||||||
*/
|
*/
|
||||||
DataSourceDto getDataSourceInfoById(Long dbId);
|
DataSourceDto getDataSourceInfoById(Long dbId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据库信息
|
||||||
|
*
|
||||||
|
* @param databaseInfoRequest 新增参数
|
||||||
|
* @author fengshuonan
|
||||||
|
* @date 2020/11/1 21:47
|
||||||
|
*/
|
||||||
|
void add(DatabaseInfoRequest databaseInfoRequest);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,15 +40,6 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public interface DatabaseInfoService extends IService<DatabaseInfo>, DataSourceApi {
|
public interface DatabaseInfoService extends IService<DatabaseInfo>, DataSourceApi {
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增数据库信息
|
|
||||||
*
|
|
||||||
* @param databaseInfoRequest 新增参数
|
|
||||||
* @author fengshuonan
|
|
||||||
* @date 2020/11/1 21:47
|
|
||||||
*/
|
|
||||||
void add(DatabaseInfoRequest databaseInfoRequest);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除,删除会导致某些用该数据源的service操作失败
|
* 删除,删除会导致某些用该数据源的service操作失败
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue