增加 CommonResult 的 check 逻辑
This commit is contained in:
@@ -30,9 +30,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService {
|
||||
|
||||
@Override
|
||||
public List<Long> load(Object key) {
|
||||
CommonResult<List<Long>> tenantIdsResult = tenantApi.getTenantIds();
|
||||
tenantIdsResult.checkError();
|
||||
return tenantIdsResult.getData();
|
||||
return tenantApi.getTenantIds().getCheckedData();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user