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 | 89 +++++++++++++++++++++++++++++++-------------
1 files changed, 63 insertions(+), 26 deletions(-)
diff --git a/aiotProto/aiot/aiot_business.pb.go b/aiotProto/aiot/aiot_business.pb.go
index ac63706..c36ed7d 100644
--- a/aiotProto/aiot/aiot_business.pb.go
+++ b/aiotProto/aiot/aiot_business.pb.go
@@ -20,16 +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"`
- Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
- Port string `protobuf:"bytes,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:"-"`
+ 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{} }
@@ -83,6 +109,13 @@
return m.Port
}
return ""
+}
+
+func (m *BusinessReq) GetType() RequestType {
+ if m != nil {
+ return m.Type
+ }
+ return RequestType_Async
}
func (m *BusinessReq) GetReq() []byte {
@@ -157,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")
}
@@ -166,22 +200,25 @@
}
var fileDescriptor_29eca6d4b33e7fd8 = []byte{
- // 269 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x50, 0x3d, 0x4f, 0xc3, 0x30,
- 0x10, 0x6d, 0xd3, 0x84, 0x8f, 0x4b, 0x5b, 0xd1, 0x2b, 0x83, 0x95, 0xa9, 0x8a, 0x18, 0x3a, 0x05,
- 0x09, 0x06, 0x66, 0x58, 0x58, 0x91, 0xfb, 0x03, 0x50, 0xea, 0x58, 0x60, 0x29, 0xc9, 0xb9, 0xb1,
- 0x03, 0x2a, 0x0b, 0x7f, 0x1d, 0xf9, 0xd2, 0x0a, 0xe8, 0xf6, 0x3e, 0xfc, 0xfc, 0x4e, 0x0f, 0x96,
- 0xa5, 0x21, 0xff, 0xba, 0xed, 0x9d, 0x69, 0xb5, 0x73, 0x85, 0xed, 0xc8, 0x13, 0xc6, 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x00, 0xff, 0xff, 0x73, 0x41, 0x66, 0x2e, 0x95, 0x01, 0x00, 0x00,
+ // 314 bytes 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, 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