插件通信,demo
This commit is contained in:
parent
1b2e54302c
commit
a6c715df8f
|
@ -25,14 +25,14 @@ func main() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
res, err := instance.Get("zltx").Order(context.Background(), getRequest())
|
||||
res, err := instance.Get(conf.Tag).Order(context.Background(), getOrderRequest())
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
log.Printf("Order res:%+v", res)
|
||||
}
|
||||
|
||||
func getRequest() *proto.OrderRequest {
|
||||
func getOrderRequest() *proto.OrderRequest {
|
||||
return &proto.OrderRequest{
|
||||
Config: &proto.Config{
|
||||
AppId: appId,
|
||||
|
|
Loading…
Reference in New Issue