|
|
@@ -1,11 +1,13 @@
|
|
|
package mq
|
|
|
|
|
|
import (
|
|
|
+ "mtp20access/global"
|
|
|
"mtp20access/model/common/response"
|
|
|
"mtp20access/model/mq/request"
|
|
|
"mtp20access/service/mq"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
+ "go.uber.org/zap"
|
|
|
)
|
|
|
|
|
|
// SendMsgToMQ 发送总线业务请求
|
|
|
@@ -22,6 +24,8 @@ func SendMsgToMQ(c *gin.Context) {
|
|
|
if err := c.ShouldBindJSON(&req); err != nil {
|
|
|
response.FailWithMessage("入参不正确", c)
|
|
|
return
|
|
|
+ } else {
|
|
|
+ global.M2A_LOG.Info("[C->S]", zap.Any("req", req.FunCodeReq), zap.Any("data", req.Data))
|
|
|
}
|
|
|
|
|
|
if err := mq.SendMQ(c, &req); err != nil {
|