//package cn.hnthyy.thmz.mq;
//
//import cn.hnthyy.thmz.service.thmz.MqService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @author: hrg
// */
//@RestController
//@RequestMapping("/publish")
//public class PublishController {
//
//    @Autowired
//    private MqService mqService;
//
//    @RequestMapping(value ="/sendOrderStatusChangeMessage")
//    public Map<String, Object> sendOrderStatusChangeMessage(@RequestParam("orderNo") String orderNo, @RequestParam("newStatus") String newStatus){
//        Map<String, Object> results = new HashMap<>();
//        mqService.sendOrderStatusChangeMessage(orderNo,newStatus);
//        results.put("resultCode", 0);
//        results.put("resultMessage", "消息发送成功");
//        return results;
//    }
//}