package com.xxfc.platform.universal.controller;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.universal.biz.MQServiceBiZ;
import com.xxfc.platform.universal.entity.Dictionary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "message")
public class MQSenderController {

    @Autowired
    private MQServiceBiZ mqServiceBiZ;

    @GetMapping(value = "/sendMessage")
    public ObjectRestResponse sendMessage(String exchange, String routKey, String json) {
        return mqServiceBiZ.sendMessage(exchange, routKey, json);
    }

}
