Merge branch 'feature/REQ-1634' into 'dev'

+feign通过ID撤销待办

See merge request universal/infrastructure/backend/msg-center-plat!91
This commit is contained in:
邬宇 2023-11-28 03:16:00 +00:00
commit a90582285e
3 changed files with 19 additions and 0 deletions

View File

@ -109,4 +109,9 @@ public class PendingMessageNewController implements PendingMessageClient {
public CommonResponse<Boolean> revokeByTemplateCodeBizCode(CompletePendingMessageRequest param) {
return CommonResponse.success(pendingMessageNewService.revokeByTemplateCodeBizCode(param));
}
@Override
public CommonResponse<Boolean> revokeById(RevokePendingMessageByIdRequest param) {
return CommonResponse.success(pendingMessageNewService.revokeById(param));
}
}

View File

@ -152,4 +152,12 @@ public interface PendingMessageClient {
*/
@PostMapping(value = "/pending-message/revoke/by-biz-code", produces = {MediaType.APPLICATION_JSON_VALUE})
CommonResponse<Boolean> revokeByTemplateCodeBizCode(@RequestBody @Valid CompletePendingMessageRequest param);
/**
* 通过ID撤销代办
*
* @param param
* @return 成功返回 {@code true} 失败返回 {@code false}
*/
CommonResponse<Boolean> revokeById(RevokePendingMessageByIdRequest param);
}

View File

@ -103,4 +103,10 @@ public class PendingMessageClientFallback implements PendingMessageClient {
log.error("fall back while revoking pending message by biz code. msgIdentityCode:[{}]", param);
return CommonResponse.error("fall back while revoking pending message by biz code");
}
@Override
public CommonResponse<Boolean> revokeById(RevokePendingMessageByIdRequest param) {
log.error("fall back while revoking pending message by ID. param:[{}]", param);
return CommonResponse.error("fall back while revoking pending message by ID");
}
}