rabbitmq rpc 消息格式及调用封装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
342 B

package rabbitmqrpc
import (
"testing"
)
func Test_Send(t *testing.T) {
exchange := "send_msg"
key := "api"
msg := map[string]interface{}{
"site_id": "100002",
"dbname": "testing",
"data": map[string]string{
"order_id": "111",
"order_sn": "cccc",
},
}
ret, err := Send(exchange, key, msg)
t.Log(ret)
t.Log(err)
}