Browse Source

增加消息结构

master v0.1.1
guzeng 3 years ago
parent
commit
24b38e4db2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      common.go

+ 6
- 0
common.go View File

@ -2,6 +2,12 @@ package rabbitmqrpc
const DES_KEY = "mqbitrab" const DES_KEY = "mqbitrab"
type MsgBody struct {
Exchange string
Key string
Data string
}
func rpc_server_conn(url ...string) (*RabbitmqServiceClient, error) { func rpc_server_conn(url ...string) (*RabbitmqServiceClient, error) {
var wx_rpc_url string = "127.0.0.1:7955" var wx_rpc_url string = "127.0.0.1:7955"


Loading…
Cancel
Save