|
|
@ -12,13 +12,13 @@ const ( |
|
|
|
|
|
|
|
func NewReq(method string, ipr ...string) (*hbtp.Request, error) { |
|
|
|
host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) |
|
|
|
return hbtp.NewDoReq(host, RPCHostCode, method, ipr...) |
|
|
|
return hbtp.NewDoReq(host, RPCHostCode, method, nil, ipr...) |
|
|
|
} |
|
|
|
func DoJson(method string, in, out interface{}, hd ...map[string]interface{}) error { |
|
|
|
host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) |
|
|
|
return hbtp.DoRPCJson(host, RPCHostCode, method, in, out, hd...) |
|
|
|
return hbtp.DoRPCJson(host, RPCHostCode, method, nil, in, out, hd...) |
|
|
|
} |
|
|
|
func DoString(method string, in interface{}, hd ...hbtp.Mp) (int, []byte, error) { |
|
|
|
host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) |
|
|
|
return hbtp.DoRPCString(host, RPCHostCode, method, in, hd...) |
|
|
|
return hbtp.DoRPCString(host, RPCHostCode, method, nil, in, hd...) |
|
|
|
} |