修改mock接口

This commit is contained in:
lxu75
2025-04-10 18:37:59 +08:00
parent 79a1880cba
commit f5fb1f4fb6

View File

@@ -28,8 +28,8 @@ public class TestController {
@PostMapping("/mockMq")
@ApiOperation(value = "补偿处理消息")
public ResultMsg<Object> mockMq(@RequestBody String message) {
rocketMQTemplate.syncSend("COMMUNITY_POST_TO_AI_TOPIC", message);
public ResultMsg<Object> mockMq(@RequestBody String topic,@RequestBody String message) {
rocketMQTemplate.syncSend(topic, message);
return ResultMsg.ok("ok");
}