system:将 api 的方法名的负数都换成 List

This commit is contained in:
YunaiV 2023-02-04 00:15:32 +08:00
parent 85aae8587e
commit d5fe4a3c89
6 changed files with 6 additions and 7 deletions

View File

@ -49,7 +49,7 @@ public class ErrorCodeAutoGeneratorImpl implements ErrorCodeAutoGenerator {
log.info("[execute][解析到错误码数量为 ({}) 个]", autoGenerateDTOs.size()); log.info("[execute][解析到错误码数量为 ({}) 个]", autoGenerateDTOs.size());
// 第二步写入到 system 服务 // 第二步写入到 system 服务
errorCodeApi.autoGenerateErrorCodes(autoGenerateDTOs).checkError(); errorCodeApi.autoGenerateErrorCodeList(autoGenerateDTOs).checkError();
log.info("[execute][写入到 system 组件完成]"); log.info("[execute][写入到 system 组件完成]");
} }

View File

@ -30,7 +30,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService {
@Override @Override
public List<Long> load(Object key) { public List<Long> load(Object key) {
return tenantApi.getTenantIds().getCheckedData(); return tenantApi.getTenantIdList().getCheckedData();
} }
}); });

View File

@ -16,7 +16,6 @@ import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid; import javax.validation.Valid;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.Date;
import java.util.List; import java.util.List;
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿fallbackFactory = @FeignClient(name = ApiConstants.NAME) // TODO 芋艿fallbackFactory =
@ -27,7 +26,7 @@ public interface ErrorCodeApi {
@PostMapping(PREFIX + "/auto-generate") @PostMapping(PREFIX + "/auto-generate")
@ApiOperation("自动创建错误码") @ApiOperation("自动创建错误码")
CommonResult<Boolean> autoGenerateErrorCodes(@Valid @RequestBody List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs); CommonResult<Boolean> autoGenerateErrorCodeList(@Valid @RequestBody List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs);
@GetMapping(PREFIX + "/list") @GetMapping(PREFIX + "/list")
@ApiOperation(value = "增量获得错误码数组", notes = "如果 minUpdateTime 为空时,则获取所有错误码") @ApiOperation(value = "增量获得错误码数组", notes = "如果 minUpdateTime 为空时,则获取所有错误码")

View File

@ -19,7 +19,7 @@ public interface TenantApi {
@GetMapping(PREFIX + "/id-list") @GetMapping(PREFIX + "/id-list")
@ApiOperation("获得所有租户编号") @ApiOperation("获得所有租户编号")
CommonResult<List<Long>> getTenantIds(); CommonResult<List<Long>> getTenantIdList();
@GetMapping(PREFIX + "/valid") @GetMapping(PREFIX + "/valid")
@ApiOperation("校验租户是否合法") @ApiOperation("校验租户是否合法")

View File

@ -24,7 +24,7 @@ public class ErrorCodeApiImpl implements ErrorCodeApi {
private ErrorCodeService errorCodeService; private ErrorCodeService errorCodeService;
@Override @Override
public CommonResult<Boolean> autoGenerateErrorCodes(List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs) { public CommonResult<Boolean> autoGenerateErrorCodeList(List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs) {
errorCodeService.autoGenerateErrorCodes(autoGenerateDTOs); errorCodeService.autoGenerateErrorCodes(autoGenerateDTOs);
return success(true); return success(true);
} }

View File

@ -21,7 +21,7 @@ public class TenantApiImpl implements TenantApi {
private TenantService tenantService; private TenantService tenantService;
@Override @Override
public CommonResult<List<Long>> getTenantIds() { public CommonResult<List<Long>> getTenantIdList() {
return success(tenantService.getTenantIds()); return success(tenantService.getTenantIds());
} }