From 55900d13b953e4949f67dafa6f3576a64913c260 Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期三, 02 三月 2022 15:56:36 +0800
Subject: [PATCH] 添加业务参数
---
aiotProto/aiot/aiot_business.pb.go | 53 +++++++++++++++++++++++++++++++++++------------------
aiotProto/aiot/aiot_business.proto | 4 +++-
2 files changed, 38 insertions(+), 19 deletions(-)
diff --git a/aiotProto/aiot/aiot_business.pb.go b/aiotProto/aiot/aiot_business.pb.go
index dab3665..319ea58 100644
--- a/aiotProto/aiot/aiot_business.pb.go
+++ b/aiotProto/aiot/aiot_business.pb.go
@@ -24,7 +24,9 @@
type BusinessReq struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
- Req []byte `protobuf:"bytes,3,opt,name=req,proto3" json:"req,omitempty"`
+ Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
+ Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
+ Req []byte `protobuf:"bytes,5,opt,name=req,proto3" json:"req,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -67,6 +69,20 @@
return m.Authorization
}
return ""
+}
+
+func (m *BusinessReq) GetIp() string {
+ if m != nil {
+ return m.Ip
+ }
+ return ""
+}
+
+func (m *BusinessReq) GetPort() int32 {
+ if m != nil {
+ return m.Port
+ }
+ return 0
}
func (m *BusinessReq) GetReq() []byte {
@@ -150,21 +166,22 @@
}
var fileDescriptor_29eca6d4b33e7fd8 = []byte{
- // 250 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x50, 0x3d, 0x4f, 0xc3, 0x40,
- 0x0c, 0x6d, 0x68, 0xca, 0x87, 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, 0xcf, 0xc5, 0xbf, 0x1f, 0xb3, 0xf9, 0xb1, 0xd4,
- 0x56, 0xdb, 0x7c, 0x84, 0x77, 0x90, 0xac, 0xa8, 0x29, 0x25, 0x4b, 0x9a, 0xb8, 0x1a, 0xa6, 0x5e,
- 0xa5, 0x25, 0xc3, 0x55, 0x76, 0xc4, 0xf3, 0xd1, 0xfa, 0x34, 0x34, 0xf8, 0xf0, 0x1b, 0x00, 0x00,
- 0xff, 0xff, 0xa4, 0x59, 0x2c, 0xb2, 0x71, 0x01, 0x00, 0x00,
+ // 271 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x50, 0x3d, 0x4f, 0xc3, 0x30,
+ 0x10, 0x6d, 0xda, 0x84, 0x8f, 0x4b, 0x5b, 0xd1, 0x2b, 0x83, 0x95, 0x29, 0x8a, 0x18, 0x32, 0x05,
+ 0x09, 0x06, 0x66, 0x58, 0x58, 0x91, 0xfb, 0x03, 0x50, 0xea, 0x58, 0x60, 0x29, 0xc9, 0xb9, 0xb6,
+ 0x03, 0x2a, 0x0b, 0x7f, 0x1d, 0xd9, 0x69, 0x05, 0x74, 0x7b, 0x1f, 0x7e, 0x7e, 0xa7, 0x07, 0xeb,
+ 0x5a, 0x91, 0x7b, 0xdd, 0x0e, 0x56, 0xf5, 0xd2, 0xda, 0x4a, 0x1b, 0x72, 0x84, 0xb1, 0x17, 0xb3,
+ 0x55, 0xb0, 0x04, 0x75, 0x1d, 0xf5, 0xa3, 0x51, 0x7c, 0x43, 0xfa, 0x74, 0x78, 0xca, 0xe5, 0x0e,
+ 0xaf, 0x21, 0x71, 0xa4, 0x95, 0x60, 0x51, 0x1e, 0x95, 0x97, 0x7c, 0x24, 0x78, 0x03, 0x8b, 0x7a,
+ 0x70, 0xef, 0x64, 0xd4, 0x57, 0xed, 0x14, 0xf5, 0x6c, 0x1a, 0xdc, 0xff, 0x22, 0x2e, 0x61, 0xaa,
+ 0x34, 0x9b, 0x05, 0x6b, 0xaa, 0x34, 0x22, 0xc4, 0x9a, 0x8c, 0x63, 0x71, 0x1e, 0x95, 0x09, 0x0f,
+ 0x18, 0xaf, 0x60, 0x66, 0xe4, 0x8e, 0x25, 0x79, 0x54, 0xce, 0xb9, 0x87, 0x85, 0x80, 0xc5, 0xef,
+ 0x01, 0xba, 0xdd, 0xfb, 0x98, 0xa0, 0x46, 0x86, 0x0b, 0x12, 0x1e, 0xb0, 0x8f, 0x75, 0xf6, 0xed,
+ 0x50, 0xeb, 0x21, 0x32, 0x38, 0xb7, 0x83, 0x10, 0xd2, 0xda, 0xd0, 0x78, 0xc1, 0x8f, 0xd4, 0xe7,
+ 0x9b, 0xda, 0xd5, 0xa1, 0x76, 0xce, 0x03, 0xbe, 0xfb, 0x84, 0xf4, 0x51, 0x91, 0xdb, 0x48, 0xf3,
+ 0xa1, 0x84, 0xc4, 0x07, 0x48, 0x9f, 0xa5, 0x3b, 0xd6, 0xe2, 0xaa, 0xf2, 0xbb, 0x54, 0x7f, 0x76,
+ 0xc8, 0xd6, 0xa7, 0x92, 0x6e, 0xf7, 0xc5, 0x04, 0x6f, 0x21, 0xdd, 0xc8, 0xbe, 0xf1, 0x7f, 0xf9,
+ 0xb5, 0x96, 0xe3, 0xab, 0x17, 0xbf, 0xa4, 0xa0, 0x36, 0x3b, 0xe1, 0xc5, 0x64, 0x7b, 0x16, 0x56,
+ 0xbe, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x95, 0xbf, 0x7b, 0x46, 0x95, 0x01, 0x00, 0x00,
}
diff --git a/aiotProto/aiot/aiot_business.proto b/aiotProto/aiot/aiot_business.proto
index 713cc6c..304ca19 100644
--- a/aiotProto/aiot/aiot_business.proto
+++ b/aiotProto/aiot/aiot_business.proto
@@ -8,7 +8,9 @@
message BusinessReq {
string topic = 1;
string authorization = 2;
- bytes req = 3;
+ string ip = 3;
+ int32 port = 4;
+ bytes req = 5;
}
// 鍝嶅簲鐨刡ody浣�
--
Gitblit v1.8.0