Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -208,4 +208,17 @@ public class DataClientFeignClientImpl implements IDataFeignClient {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse initNewTenant(Long tenantId) {
|
||||
SdmResponse response;
|
||||
try {
|
||||
response = dataClient.initNewTenant(tenantId);
|
||||
log.info("初始化租户{}成功:"+ tenantId, response);
|
||||
return response;
|
||||
} catch (Exception e) {
|
||||
log.error("初始化租户失败:", e);
|
||||
return SdmResponse.failed("初始化租户失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -85,4 +85,7 @@ public interface IDataFeignClient {
|
||||
@PostMapping("/data/queryFileListByIdList")
|
||||
SdmResponse<List<FileMetadataInfoResp>> queryFileListByIdList(@RequestBody QueryFileReq queryFileReq);
|
||||
|
||||
@PostMapping("/data/initNewTenant")
|
||||
SdmResponse initNewTenant(@RequestParam Long tenantId);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user