Commit 837345ed95d5f93018acde8ff64b1458e57b4f4c
1 parent
245e5573
system:将 api 的方法名的负数都换成 List
Showing
6 changed files
with
9 additions
and
9 deletions
yudao-framework/yudao-spring-boot-starter-biz-error-code/src/main/java/cn/iocoder/yudao/framework/errorcode/core/generator/ErrorCodeAutoGeneratorImpl.java
| @@ -49,7 +49,7 @@ public class ErrorCodeAutoGeneratorImpl implements ErrorCodeAutoGenerator { | @@ -49,7 +49,7 @@ public class ErrorCodeAutoGeneratorImpl implements ErrorCodeAutoGenerator { | ||
| 49 | log.info("[execute][解析到错误码数量为 ({}) 个]", autoGenerateDTOs.size()); | 49 | log.info("[execute][解析到错误码数量为 ({}) 个]", autoGenerateDTOs.size()); |
| 50 | 50 | ||
| 51 | // 第二步,写入到 system 服务 | 51 | // 第二步,写入到 system 服务 |
| 52 | - errorCodeApi.autoGenerateErrorCodes(autoGenerateDTOs); | 52 | + errorCodeApi.autoGenerateErrorCodeList(autoGenerateDTOs); |
| 53 | log.info("[execute][写入到 system 组件完成]"); | 53 | log.info("[execute][写入到 system 组件完成]"); |
| 54 | } | 54 | } |
| 55 | 55 |
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/service/TenantFrameworkServiceImpl.java
| @@ -32,7 +32,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService { | @@ -32,7 +32,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService { | ||
| 32 | 32 | ||
| 33 | @Override | 33 | @Override |
| 34 | public List<Long> load(Object key) { | 34 | public List<Long> load(Object key) { |
| 35 | - return tenantApi.getTenantIds(); | 35 | + return tenantApi.getTenantIdList(); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | }); | 38 | }); |
| @@ -47,7 +47,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService { | @@ -47,7 +47,7 @@ public class TenantFrameworkServiceImpl implements TenantFrameworkService { | ||
| 47 | @Override | 47 | @Override |
| 48 | public ServiceException load(Long id) { | 48 | public ServiceException load(Long id) { |
| 49 | try { | 49 | try { |
| 50 | - tenantApi.validTenant(id); | 50 | + tenantApi.validateTenant(id); |
| 51 | return SERVICE_EXCEPTION_NULL; | 51 | return SERVICE_EXCEPTION_NULL; |
| 52 | } catch (ServiceException ex) { | 52 | } catch (ServiceException ex) { |
| 53 | return ex; | 53 | return ex; |
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApi.java
| @@ -19,7 +19,7 @@ public interface ErrorCodeApi { | @@ -19,7 +19,7 @@ public interface ErrorCodeApi { | ||
| 19 | * | 19 | * |
| 20 | * @param autoGenerateDTOs 错误码信息 | 20 | * @param autoGenerateDTOs 错误码信息 |
| 21 | */ | 21 | */ |
| 22 | - void autoGenerateErrorCodes(@Valid List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs); | 22 | + void autoGenerateErrorCodeList(@Valid List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs); |
| 23 | 23 | ||
| 24 | /** | 24 | /** |
| 25 | * 增量获得错误码数组 | 25 | * 增量获得错误码数组 |
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApi.java
| @@ -14,13 +14,13 @@ public interface TenantApi { | @@ -14,13 +14,13 @@ public interface TenantApi { | ||
| 14 | * | 14 | * |
| 15 | * @return 租户编号数组 | 15 | * @return 租户编号数组 |
| 16 | */ | 16 | */ |
| 17 | - List<Long> getTenantIds(); | 17 | + List<Long> getTenantIdList(); |
| 18 | 18 | ||
| 19 | /** | 19 | /** |
| 20 | * 校验租户是否合法 | 20 | * 校验租户是否合法 |
| 21 | * | 21 | * |
| 22 | * @param id 租户编号 | 22 | * @param id 租户编号 |
| 23 | */ | 23 | */ |
| 24 | - void validTenant(Long id); | 24 | + void validateTenant(Long id); |
| 25 | 25 | ||
| 26 | } | 26 | } |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/errorcode/ErrorCodeApiImpl.java
| @@ -21,7 +21,7 @@ public class ErrorCodeApiImpl implements ErrorCodeApi { | @@ -21,7 +21,7 @@ public class ErrorCodeApiImpl implements ErrorCodeApi { | ||
| 21 | private ErrorCodeService errorCodeService; | 21 | private ErrorCodeService errorCodeService; |
| 22 | 22 | ||
| 23 | @Override | 23 | @Override |
| 24 | - public void autoGenerateErrorCodes(List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs) { | 24 | + public void autoGenerateErrorCodeList(List<ErrorCodeAutoGenerateReqDTO> autoGenerateDTOs) { |
| 25 | errorCodeService.autoGenerateErrorCodes(autoGenerateDTOs); | 25 | errorCodeService.autoGenerateErrorCodes(autoGenerateDTOs); |
| 26 | } | 26 | } |
| 27 | 27 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/tenant/TenantApiImpl.java
| @@ -18,12 +18,12 @@ public class TenantApiImpl implements TenantApi { | @@ -18,12 +18,12 @@ public class TenantApiImpl implements TenantApi { | ||
| 18 | private TenantService tenantService; | 18 | private TenantService tenantService; |
| 19 | 19 | ||
| 20 | @Override | 20 | @Override |
| 21 | - public List<Long> getTenantIds() { | 21 | + public List<Long> getTenantIdList() { |
| 22 | return tenantService.getTenantIds(); | 22 | return tenantService.getTenantIds(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | @Override | 25 | @Override |
| 26 | - public void validTenant(Long id) { | 26 | + public void validateTenant(Long id) { |
| 27 | tenantService.validTenant(id); | 27 | tenantService.validTenant(id); |
| 28 | } | 28 | } |
| 29 | 29 |