From c221d929d2ade5fb2f8a4b2d3c10a18455028a4b Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期五, 04 三月 2022 16:06:45 +0800
Subject: [PATCH] 更新直接发送请求proto

---
 aiotProto/aiot/aiot_business.pb.micro.go |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/aiotProto/aiot/aiot_business.pb.micro.go b/aiotProto/aiot/aiot_business.pb.micro.go
index 5fd9e02..0df5c72 100644
--- a/aiotProto/aiot/aiot_business.pb.micro.go
+++ b/aiotProto/aiot/aiot_business.pb.micro.go
@@ -37,7 +37,7 @@
 	// 鍙戦�佹寚鍚戝崟涓澶囩殑璇锋眰
 	SendToNode(ctx context.Context, in *NodeReq, opts ...client.CallOption) (*BusinessReply, error)
 	// 鐩存帴鍙戦�乼cp璇锋眰
-	SendAiotReq(ctx context.Context, in *Protocol, opts ...client.CallOption) (*Protocol, error)
+	SendAiotReq(ctx context.Context, in *Protocol, opts ...client.CallOption) (*BusinessReply, error)
 	// 鍙戦�佺兢缁勮姹�
 	SendToCluster(ctx context.Context, in *ClusterReq, opts ...client.CallOption) (*BusinessReply, error)
 	// 鍚戝涓澶囧悓鏃跺彂璧风浉鍚屽弬鏁拌姹�
@@ -72,9 +72,9 @@
 	return out, nil
 }
 
-func (c *aiotService) SendAiotReq(ctx context.Context, in *Protocol, opts ...client.CallOption) (*Protocol, error) {
+func (c *aiotService) SendAiotReq(ctx context.Context, in *Protocol, opts ...client.CallOption) (*BusinessReply, error) {
 	req := c.c.NewRequest(c.name, "AiotService.SendAiotReq", in)
-	out := new(Protocol)
+	out := new(BusinessReply)
 	err := c.c.Call(ctx, req, out, opts...)
 	if err != nil {
 		return nil, err
@@ -108,7 +108,7 @@
 	// 鍙戦�佹寚鍚戝崟涓澶囩殑璇锋眰
 	SendToNode(context.Context, *NodeReq, *BusinessReply) error
 	// 鐩存帴鍙戦�乼cp璇锋眰
-	SendAiotReq(context.Context, *Protocol, *Protocol) error
+	SendAiotReq(context.Context, *Protocol, *BusinessReply) error
 	// 鍙戦�佺兢缁勮姹�
 	SendToCluster(context.Context, *ClusterReq, *BusinessReply) error
 	// 鍚戝涓澶囧悓鏃跺彂璧风浉鍚屽弬鏁拌姹�
@@ -118,7 +118,7 @@
 func RegisterAiotServiceHandler(s server.Server, hdlr AiotServiceHandler, opts ...server.HandlerOption) error {
 	type aiotService interface {
 		SendToNode(ctx context.Context, in *NodeReq, out *BusinessReply) error
-		SendAiotReq(ctx context.Context, in *Protocol, out *Protocol) error
+		SendAiotReq(ctx context.Context, in *Protocol, out *BusinessReply) error
 		SendToCluster(ctx context.Context, in *ClusterReq, out *BusinessReply) error
 		SendToNodes(ctx context.Context, in *NodesReq, out *BusinessReply) error
 	}
@@ -137,7 +137,7 @@
 	return h.AiotServiceHandler.SendToNode(ctx, in, out)
 }
 
-func (h *aiotServiceHandler) SendAiotReq(ctx context.Context, in *Protocol, out *Protocol) error {
+func (h *aiotServiceHandler) SendAiotReq(ctx context.Context, in *Protocol, out *BusinessReply) error {
 	return h.AiotServiceHandler.SendAiotReq(ctx, in, out)
 }
 

--
Gitblit v1.8.0