修改mock接口
This commit is contained in:
@@ -28,8 +28,8 @@ public class TestController {
|
|||||||
|
|
||||||
@PostMapping("/mockMq")
|
@PostMapping("/mockMq")
|
||||||
@ApiOperation(value = "补偿处理消息")
|
@ApiOperation(value = "补偿处理消息")
|
||||||
public ResultMsg<Object> mockMq(@RequestBody String message) {
|
public ResultMsg<Object> mockMq(@RequestBody String topic,@RequestBody String message) {
|
||||||
rocketMQTemplate.syncSend("COMMUNITY_POST_TO_AI_TOPIC", message);
|
rocketMQTemplate.syncSend(topic, message);
|
||||||
return ResultMsg.ok("ok");
|
return ResultMsg.ok("ok");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user