From 6c31643efa07274245b6fe4ef95f39c1460f4b70 Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期三, 02 三月 2022 16:54:01 +0800
Subject: [PATCH] 业务端口类型
---
aiotProto/aiot/aiot_business.pb.go | 100 ++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 77 insertions(+), 23 deletions(-)
diff --git a/aiotProto/aiot/aiot_business.pb.go b/aiotProto/aiot/aiot_business.pb.go
index dab3665..c36ed7d 100644
--- a/aiotProto/aiot/aiot_business.pb.go
+++ b/aiotProto/aiot/aiot_business.pb.go
@@ -20,14 +20,42 @@
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+type RequestType int32
+
+const (
+ RequestType_Async RequestType = 0
+ RequestType_sync RequestType = 1
+)
+
+var RequestType_name = map[int32]string{
+ 0: "Async",
+ 1: "sync",
+}
+
+var RequestType_value = map[string]int32{
+ "Async": 0,
+ "sync": 1,
+}
+
+func (x RequestType) String() string {
+ return proto.EnumName(RequestType_name, int32(x))
+}
+
+func (RequestType) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_29eca6d4b33e7fd8, []int{0}
+}
+
// 璇锋眰鐨刡ody浣�
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"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
+ Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
+ Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
+ Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
+ Type RequestType `protobuf:"varint,5,opt,name=type,proto3,enum=aiot.RequestType" json:"type,omitempty"`
+ Req []byte `protobuf:"bytes,6,opt,name=req,proto3" json:"req,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *BusinessReq) Reset() { *m = BusinessReq{} }
@@ -67,6 +95,27 @@
return m.Authorization
}
return ""
+}
+
+func (m *BusinessReq) GetIp() string {
+ if m != nil {
+ return m.Ip
+ }
+ return ""
+}
+
+func (m *BusinessReq) GetPort() string {
+ if m != nil {
+ return m.Port
+ }
+ return ""
+}
+
+func (m *BusinessReq) GetType() RequestType {
+ if m != nil {
+ return m.Type
+ }
+ return RequestType_Async
}
func (m *BusinessReq) GetReq() []byte {
@@ -141,6 +190,7 @@
}
func init() {
+ proto.RegisterEnum("aiot.RequestType", RequestType_name, RequestType_value)
proto.RegisterType((*BusinessReq)(nil), "aiot.BusinessReq")
proto.RegisterType((*BusinessReply)(nil), "aiot.BusinessReply")
}
@@ -150,21 +200,25 @@
}
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, 0x43, 0x11, 0x75, 0x19, 0xa2, 0x4c, 0x55, 0xc4, 0xd0, 0x29, 0x48,
- 0x30, 0x30, 0xc3, 0xc2, 0x8a, 0xae, 0x23, 0x03, 0xba, 0x5e, 0x2c, 0x38, 0x29, 0x89, 0xd3, 0xdc,
- 0x05, 0x54, 0x7e, 0x3d, 0xf2, 0xa5, 0x15, 0xb4, 0xdb, 0xfb, 0xb0, 0x9f, 0xe5, 0x07, 0x73, 0x6d,
- 0xd9, 0xbf, 0xaf, 0x7b, 0x67, 0x1b, 0x72, 0xae, 0x68, 0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ytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x41, 0x4f, 0x02, 0x31,
+ 0x10, 0x85, 0x59, 0xd8, 0x45, 0x98, 0x05, 0x02, 0x83, 0x87, 0x86, 0x13, 0xd9, 0x68, 0x42, 0x3c,
+ 0x60, 0x82, 0x07, 0xcf, 0x78, 0xf1, 0x6a, 0x8a, 0x77, 0xb3, 0x94, 0x89, 0x36, 0x81, 0x6d, 0xd9,
+ 0x76, 0x35, 0xeb, 0x0f, 0xf2, 0x77, 0x9a, 0x0e, 0x10, 0x91, 0xdb, 0x9b, 0xf7, 0x3a, 0x93, 0xaf,
+ 0x33, 0x30, 0xce, 0xb5, 0xf1, 0x6f, 0xeb, 0xca, 0xe9, 0x82, 0x9c, 0x9b, 0xdb, 0xd2, 0x78, 0x83,
+ 0x71, 0x30, 0x27, 0x23, 0x8e, 0x94, 0xd9, 0xed, 0x4c, 0x71, 0x08, 0xb2, 0x9f, 0x08, 0xd2, 0xa7,
+ 0xe3, 0x5b, 0x49, 0x7b, 0xbc, 0x86, 0xc4, 0x1b, 0xab, 0x95, 0x88, 0xa6, 0xd1, 0xac, 0x2b, 0x0f,
+ 0x05, 0xde, 0x40, 0x3f, 0xaf, 0xfc, 0x87, 0x29, 0xf5, 0x77, 0xee, 0xb5, 0x29, 0x44, 0x93, 0xd3,
+ 0xff, 0x26, 0x0e, 0xa0, 0xa9, 0xad, 0x68, 0x71, 0xd4, 0xd4, 0x16, 0x11, 0x62, 0x6b, 0x4a, 0x2f,
+ 0x62, 0x76, 0x58, 0xe3, 0x2d, 0xc4, 0xbe, 0xb6, 0x24, 0x92, 0x69, 0x34, 0x1b, 0x2c, 0x46, 0xf3,
+ 0x40, 0x34, 0x97, 0xb4, 0xaf, 0xc8, 0xf9, 0xd7, 0xda, 0x92, 0xe4, 0x18, 0x87, 0xd0, 0x2a, 0x69,
+ 0x2f, 0xda,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