修改mock接口
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user