From b725ecaef15d8d544aa8a6511a1a4f705441843a Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期五, 04 三月 2022 16:20:33 +0800
Subject: [PATCH] 更新直接发送请求proto
---
aiotProto/aiot/aiot_business.proto | 32 ++++++++++++++++++--------------
1 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/aiotProto/aiot/aiot_business.proto b/aiotProto/aiot/aiot_business.proto
index cbc23aa..63dfc8e 100644
--- a/aiotProto/aiot/aiot_business.proto
+++ b/aiotProto/aiot/aiot_business.proto
@@ -59,34 +59,38 @@
// 闆嗙兢璇锋眰鍙傛暟
message ClusterReq{
+ // 璇锋眰鐨則opic url
+ string topic = 1;
// 闆嗙兢ID
- string clusterId = 1;
+ string clusterId = 2;
// token
- string authorization = 2;
+ string authorization = 3;
// 璇锋眰鐨勫悓姝�/寮傛绫诲瀷
- RequestType syncType = 3;
+ RequestType syncType = 4;
// method
- RequestMethod method = 4;
+ RequestMethod method = 5;
// content-type
- RequestContentType contentType = 5;
+ RequestContentType contentType = 6;
// 璇锋眰涓氬姟鍙傛暟
- bytes req = 6;
+ bytes req = 7;
}
// 璁惧鍒楄〃璇锋眰鍙傛暟
message NodesReq{
+ // 璇锋眰鐨則opic url
+ string topic = 1;
// 璁惧鍒楄〃ID
- repeated string nodeIds = 1;
+ repeated string nodeIds = 2;
// token
- string authorization = 2;
+ string authorization = 3;
// 璇锋眰鐨勫悓姝�/寮傛绫诲瀷
- RequestType syncType = 3;
+ RequestType syncType = 4;
// method
- RequestMethod method = 4;
+ RequestMethod method = 5;
// content-type
- RequestContentType contentType = 5;
+ RequestContentType contentType = 6;
// 璇锋眰涓氬姟鍙傛暟
- bytes req = 6;
+ bytes req = 7;
}
// 鍝嶅簲鐨刡ody浣�
@@ -105,8 +109,8 @@
service AiotService {
// 鍙戦�佹寚鍚戝崟涓澶囩殑璇锋眰
rpc SendToNode(NodeReq) returns (BusinessReply){}
- // 鐩存帴鍙戦�乼cp璇锋眰
- rpc SendAiotReq(Protocol) returns (Protocol){}
+ // 鐩存帴鍙戦�佸悓姝cp璇锋眰
+ rpc SendAiotSyncReq(Protocol) returns (BusinessReply){}
// 鍙戦�佺兢缁勮姹�
rpc SendToCluster(ClusterReq) returns (BusinessReply){}
// 鍚戝涓澶囧悓鏃跺彂璧风浉鍚屽弬鏁拌姹�
--
Gitblit v1.8.0