Merge branch 'feature/REQ-1634' into 'dev'
+feign通过ID撤销待办 See merge request universal/infrastructure/backend/msg-center-plat!91
This commit is contained in:
commit
a90582285e
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user