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