From 049069564ea8ebc45932914822c7c879027f5707 Mon Sep 17 00:00:00 2001 From: liuliaozhong Date: Mon, 23 Oct 2023 15:53:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=BA=90=E6=8E=A5=E5=8F=A3=E5=8F=AA=E4=BC=A0id=E4=B8=8D?= =?UTF-8?q?=E4=BC=A0code=E6=97=B6=E6=8A=A5=E9=94=99=20#2414?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/i18n/exception/message_en.properties | 2 +- .../src/main/resources/i18n/exception/message_en_US.properties | 2 +- .../main/java/com/tencent/bk/job/common/constant/ErrorCode.java | 2 +- .../job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties index d302198edf..3fc88ef5df 100644 --- a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties +++ b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en.properties @@ -202,7 +202,7 @@ 1260016=At least one of id/code required 1260017=FileSource[id={0}] does not belong to specified business 1260018=FileWorker response error, Detail:{0} -1260019=File source code can not empty +1260019=File source code can not be empty ## Business error (job-file-worker) 1262001=Third file source response error:ListBucket, Detail:{0} diff --git a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties index d302198edf..3fc88ef5df 100644 --- a/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties +++ b/src/backend/commons/common-i18n/src/main/resources/i18n/exception/message_en_US.properties @@ -202,7 +202,7 @@ 1260016=At least one of id/code required 1260017=FileSource[id={0}] does not belong to specified business 1260018=FileWorker response error, Detail:{0} -1260019=File source code can not empty +1260019=File source code can not be empty ## Business error (job-file-worker) 1262001=Third file source response error:ListBucket, Detail:{0} diff --git a/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java b/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java index 529f0c478c..a41e8cb1a4 100644 --- a/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java +++ b/src/backend/commons/common/src/main/java/com/tencent/bk/job/common/constant/ErrorCode.java @@ -326,7 +326,7 @@ public class ErrorCode { // 接入点响应异常,详情:{0} public static final int FAIL_TO_REQUEST_FILE_WORKER_WITH_REASON = 1260018; // 文件源code不可为空 - public static final int FILE_SOURCE_CODE_NOT_EMPTY = 1260019; + public static final int FILE_SOURCE_CODE_CAN_NOT_BE_EMPTY = 1260019; // 文件网关 end // 文件代理 start diff --git a/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java b/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java index 3d8ea27ac4..79cf30d212 100644 --- a/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java +++ b/src/backend/job-file-gateway/service-job-file-gateway/src/main/java/com/tencent/bk/job/file_gateway/api/esb/EsbFileSourceV3ResourceImpl.java @@ -106,7 +106,7 @@ private Integer checkUpdateParamAndGetId(EsbCreateOrUpdateFileSourceV3Req req) { Long appId = req.getAppId(); String code = req.getCode(); if (StringUtils.isBlank(code)) { - throw new MissingParameterException(ErrorCode.FILE_SOURCE_CODE_NOT_EMPTY); + throw new MissingParameterException(ErrorCode.FILE_SOURCE_CODE_CAN_NOT_BE_EMPTY); } Integer id = fileSourceService.getFileSourceIdByCode(appId, code); if (id == null) {