mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-16 12:05:07 +08:00
多租户:调整 tenant 表的 domain 字段为 website,避免 dm 数据库的关键字冲突
This commit is contained in:
@ -29,7 +29,7 @@ public class TenantBaseVO {
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "绑定域名", example = "https://www.iocoder.cn")
|
||||
private String domain;
|
||||
private String website;
|
||||
|
||||
@Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||
@NotNull(message = "租户套餐编号不能为空")
|
||||
|
@ -59,10 +59,8 @@ public class TenantDO extends BaseDO {
|
||||
private Integer status;
|
||||
/**
|
||||
* 绑定域名
|
||||
*
|
||||
* TODO 芋艿:目前是预留字段,未来会支持根据域名,自动查询到对应的租户。等等
|
||||
*/
|
||||
private String domain;
|
||||
private String website;
|
||||
/**
|
||||
* 租户套餐编号
|
||||
*
|
||||
|
@ -157,7 +157,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest {
|
||||
o.setContactMobile("15601691300");
|
||||
o.setPackageId(100L);
|
||||
o.setStatus(randomCommonStatus());
|
||||
o.setDomain("https://www.iocoder.cn");
|
||||
o.setWebsite("https://www.iocoder.cn");
|
||||
o.setUsername("yunai");
|
||||
o.setPassword("yuanma");
|
||||
});
|
||||
@ -185,7 +185,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest {
|
||||
TenantUpdateReqVO reqVO = randomPojo(TenantUpdateReqVO.class, o -> {
|
||||
o.setId(dbTenant.getId()); // 设置更新的 ID
|
||||
o.setStatus(randomCommonStatus());
|
||||
o.setDomain(randomString());
|
||||
o.setWebsite(randomString());
|
||||
});
|
||||
|
||||
// mock 套餐
|
||||
|
Reference in New Issue
Block a user