添加转化类

master
bynt 9 months ago
parent 14438d3bd4
commit 875d8ff619

@ -24,9 +24,8 @@ public class TripartiteController {
* *
*/ */
@PostMapping("/push/clue/{appKey}") @PostMapping("/push/clue/{appKey}")
public R<String> pushClue(@PathVariable("appKey") String appKey, @RequestBody String body) { public R<String> pushClue(@PathVariable("appKey") String appKey, @RequestBody PushClueDTO dto) {
log.info(" =============== the body as {} ===============", body); // PushClueDTO dto = JSONUtil.toBean(body, PushClueDTO.class);
PushClueDTO dto = JSONUtil.toBean(body, PushClueDTO.class);
return Boolean.TRUE.equals(tripartiteService.callbackByAppKeyAndNid return Boolean.TRUE.equals(tripartiteService.callbackByAppKeyAndNid
(appKey, dto)) ? R.ok("success") : R.failed("message callback failed"); (appKey, dto)) ? R.ok("success") : R.failed("message callback failed");
} }

Loading…
Cancel
Save