|
@@ -187,6 +187,100 @@ func (x *UserResponse) GetGender() int64 {
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type TokenRequest struct {
|
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
+
|
|
|
|
|
+ Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenRequest) Reset() {
|
|
|
|
|
+ *x = TokenRequest{}
|
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[2]
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenRequest) String() string {
|
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (*TokenRequest) ProtoMessage() {}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[2]
|
|
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+ return ms
|
|
|
|
|
+ }
|
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*TokenRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenRequest) GetToken() string {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Token
|
|
|
|
|
+ }
|
|
|
|
|
+ return ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type TokenResponse struct {
|
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
+
|
|
|
|
|
+ UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenResponse) Reset() {
|
|
|
|
|
+ *x = TokenResponse{}
|
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[3]
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenResponse) String() string {
|
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (*TokenResponse) ProtoMessage() {}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[3]
|
|
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+ return ms
|
|
|
|
|
+ }
|
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*TokenResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *TokenResponse) GetUserId() string {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.UserId
|
|
|
|
|
+ }
|
|
|
|
|
+ return ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type Empty struct {
|
|
type Empty struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -196,7 +290,7 @@ type Empty struct {
|
|
|
func (x *Empty) Reset() {
|
|
func (x *Empty) Reset() {
|
|
|
*x = Empty{}
|
|
*x = Empty{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_transform_proto_msgTypes[2]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[4]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
}
|
|
@@ -209,7 +303,7 @@ func (x *Empty) String() string {
|
|
|
func (*Empty) ProtoMessage() {}
|
|
func (*Empty) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_transform_proto_msgTypes[2]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[4]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -222,7 +316,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
|
- return file_transform_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{4}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type TreeNodes struct {
|
|
type TreeNodes struct {
|
|
@@ -236,7 +330,7 @@ type TreeNodes struct {
|
|
|
func (x *TreeNodes) Reset() {
|
|
func (x *TreeNodes) Reset() {
|
|
|
*x = TreeNodes{}
|
|
*x = TreeNodes{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_transform_proto_msgTypes[3]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
}
|
|
@@ -249,7 +343,7 @@ func (x *TreeNodes) String() string {
|
|
|
func (*TreeNodes) ProtoMessage() {}
|
|
func (*TreeNodes) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TreeNodes) ProtoReflect() protoreflect.Message {
|
|
func (x *TreeNodes) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_transform_proto_msgTypes[3]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -262,7 +356,7 @@ func (x *TreeNodes) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
// Deprecated: Use TreeNodes.ProtoReflect.Descriptor instead.
|
|
// Deprecated: Use TreeNodes.ProtoReflect.Descriptor instead.
|
|
|
func (*TreeNodes) Descriptor() ([]byte, []int) {
|
|
func (*TreeNodes) Descriptor() ([]byte, []int) {
|
|
|
- return file_transform_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *TreeNodes) GetNodes() []*TreeNode {
|
|
func (x *TreeNodes) GetNodes() []*TreeNode {
|
|
@@ -287,7 +381,7 @@ type TreeNode struct {
|
|
|
func (x *TreeNode) Reset() {
|
|
func (x *TreeNode) Reset() {
|
|
|
*x = TreeNode{}
|
|
*x = TreeNode{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_transform_proto_msgTypes[4]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
}
|
|
@@ -300,7 +394,7 @@ func (x *TreeNode) String() string {
|
|
|
func (*TreeNode) ProtoMessage() {}
|
|
func (*TreeNode) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *TreeNode) ProtoReflect() protoreflect.Message {
|
|
func (x *TreeNode) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_transform_proto_msgTypes[4]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -313,7 +407,7 @@ func (x *TreeNode) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
// Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.
|
|
// Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.
|
|
|
func (*TreeNode) Descriptor() ([]byte, []int) {
|
|
func (*TreeNode) Descriptor() ([]byte, []int) {
|
|
|
- return file_transform_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *TreeNode) GetId() int64 {
|
|
func (x *TreeNode) GetId() int64 {
|
|
@@ -363,7 +457,7 @@ type Tag struct {
|
|
|
func (x *Tag) Reset() {
|
|
func (x *Tag) Reset() {
|
|
|
*x = Tag{}
|
|
*x = Tag{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_transform_proto_msgTypes[5]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[7]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
}
|
|
@@ -376,7 +470,7 @@ func (x *Tag) String() string {
|
|
|
func (*Tag) ProtoMessage() {}
|
|
func (*Tag) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Tag) ProtoReflect() protoreflect.Message {
|
|
func (x *Tag) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_transform_proto_msgTypes[5]
|
|
|
|
|
|
|
+ mi := &file_transform_proto_msgTypes[7]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -389,7 +483,7 @@ func (x *Tag) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
// Deprecated: Use Tag.ProtoReflect.Descriptor instead.
|
|
// Deprecated: Use Tag.ProtoReflect.Descriptor instead.
|
|
|
func (*Tag) Descriptor() ([]byte, []int) {
|
|
func (*Tag) Descriptor() ([]byte, []int) {
|
|
|
- return file_transform_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
|
|
+ return file_transform_proto_rawDescGZIP(), []int{7}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *Tag) GetId() int64 {
|
|
func (x *Tag) GetId() int64 {
|
|
@@ -427,27 +521,36 @@ var file_transform_proto_rawDesc = []byte{
|
|
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
|
|
0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
|
|
|
- 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74,
|
|
|
|
|
- 0x79, 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29,
|
|
|
|
|
- 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e,
|
|
|
|
|
- 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f,
|
|
|
|
|
- 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72,
|
|
|
|
|
- 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
- 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02,
|
|
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,
|
|
|
|
|
- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
|
|
|
|
|
- 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
|
- 0x0e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52,
|
|
|
|
|
- 0x03, 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20,
|
|
|
|
|
- 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
|
|
|
|
|
- 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22,
|
|
|
|
|
- 0x29, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
- 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
|
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x81, 0x01, 0x0a, 0x09, 0x54,
|
|
|
|
|
- 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55,
|
|
|
|
|
- 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
|
|
|
|
|
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72,
|
|
|
|
|
- 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
|
|
+ 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65,
|
|
|
|
|
+ 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
|
|
|
|
|
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x27,
|
|
|
|
|
+ 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
|
+ 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
+ 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
|
|
|
+ 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a,
|
|
|
|
|
+ 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74,
|
|
|
|
|
+ 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64,
|
|
|
|
|
+ 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x65,
|
|
|
|
|
+ 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
+ 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20,
|
|
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,
|
|
|
|
|
+ 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
|
|
|
|
|
+ 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
|
|
|
|
|
+ 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03,
|
|
|
|
|
+ 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03,
|
|
|
|
|
+ 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54,
|
|
|
|
|
+ 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x29,
|
|
|
|
|
+ 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
+ 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
|
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x09, 0x54, 0x72,
|
|
|
|
|
+ 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73,
|
|
|
|
|
+ 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55,
|
|
|
|
|
+ 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72, 0x61,
|
|
|
|
|
+ 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
+ 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b, 0x65,
|
|
|
|
|
+ 0x6e, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f,
|
|
|
|
|
+ 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x72, 0x61,
|
|
|
|
|
+ 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43, 0x69,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43, 0x69,
|
|
|
0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
|
|
0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
|
|
|
0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
|
|
@@ -467,25 +570,29 @@ func file_transform_proto_rawDescGZIP() []byte {
|
|
|
return file_transform_proto_rawDescData
|
|
return file_transform_proto_rawDescData
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
|
|
|
|
|
+var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
var file_transform_proto_goTypes = []interface{}{
|
|
var file_transform_proto_goTypes = []interface{}{
|
|
|
- (*UserRequest)(nil), // 0: transform.UserRequest
|
|
|
|
|
- (*UserResponse)(nil), // 1: transform.UserResponse
|
|
|
|
|
- (*Empty)(nil), // 2: transform.Empty
|
|
|
|
|
- (*TreeNodes)(nil), // 3: transform.TreeNodes
|
|
|
|
|
- (*TreeNode)(nil), // 4: transform.TreeNode
|
|
|
|
|
- (*Tag)(nil), // 5: transform.Tag
|
|
|
|
|
|
|
+ (*UserRequest)(nil), // 0: transform.UserRequest
|
|
|
|
|
+ (*UserResponse)(nil), // 1: transform.UserResponse
|
|
|
|
|
+ (*TokenRequest)(nil), // 2: transform.TokenRequest
|
|
|
|
|
+ (*TokenResponse)(nil), // 3: transform.TokenResponse
|
|
|
|
|
+ (*Empty)(nil), // 4: transform.Empty
|
|
|
|
|
+ (*TreeNodes)(nil), // 5: transform.TreeNodes
|
|
|
|
|
+ (*TreeNode)(nil), // 6: transform.TreeNode
|
|
|
|
|
+ (*Tag)(nil), // 7: transform.Tag
|
|
|
}
|
|
}
|
|
|
var file_transform_proto_depIdxs = []int32{
|
|
var file_transform_proto_depIdxs = []int32{
|
|
|
- 4, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
|
|
|
|
|
- 5, // 1: transform.TreeNode.tag:type_name -> transform.Tag
|
|
|
|
|
- 4, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
|
|
|
|
|
|
|
+ 6, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
|
|
|
|
|
+ 7, // 1: transform.TreeNode.tag:type_name -> transform.Tag
|
|
|
|
|
+ 6, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
|
|
|
0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
|
|
0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
|
|
|
- 2, // 4: transform.Transform.GetErpCityTree:input_type -> transform.Empty
|
|
|
|
|
- 1, // 5: transform.Transform.GetUser:output_type -> transform.UserResponse
|
|
|
|
|
- 3, // 6: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
|
|
|
|
|
- 5, // [5:7] is the sub-list for method output_type
|
|
|
|
|
- 3, // [3:5] is the sub-list for method input_type
|
|
|
|
|
|
|
+ 2, // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
|
|
|
|
|
+ 4, // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
|
|
|
|
|
+ 1, // 6: transform.Transform.GetUser:output_type -> transform.UserResponse
|
|
|
|
|
+ 3, // 7: transform.Transform.ParseToken:output_type -> transform.TokenResponse
|
|
|
|
|
+ 5, // 8: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
|
|
|
|
|
+ 6, // [6:9] is the sub-list for method output_type
|
|
|
|
|
+ 3, // [3:6] is the sub-list for method input_type
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
0, // [0:3] is the sub-list for field type_name
|
|
0, // [0:3] is the sub-list for field type_name
|
|
@@ -522,7 +629,7 @@ func file_transform_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
file_transform_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Empty); i {
|
|
|
|
|
|
|
+ switch v := v.(*TokenRequest); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -534,7 +641,7 @@ func file_transform_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
file_transform_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*TreeNodes); i {
|
|
|
|
|
|
|
+ switch v := v.(*TokenResponse); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -546,7 +653,7 @@ func file_transform_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
file_transform_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*TreeNode); i {
|
|
|
|
|
|
|
+ switch v := v.(*Empty); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -558,6 +665,30 @@ func file_transform_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
file_transform_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
+ switch v := v.(*TreeNodes); i {
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ return &v.state
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ return &v.sizeCache
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ return &v.unknownFields
|
|
|
|
|
+ default:
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ file_transform_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
+ switch v := v.(*TreeNode); i {
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ return &v.state
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ return &v.sizeCache
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ return &v.unknownFields
|
|
|
|
|
+ default:
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ file_transform_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*Tag); i {
|
|
switch v := v.(*Tag); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
@@ -576,7 +707,7 @@ func file_transform_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_transform_proto_rawDesc,
|
|
RawDescriptor: file_transform_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
NumEnums: 0,
|
|
|
- NumMessages: 6,
|
|
|
|
|
|
|
+ NumMessages: 8,
|
|
|
NumExtensions: 0,
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
NumServices: 1,
|
|
|
},
|
|
},
|
|
@@ -603,6 +734,7 @@ const _ = grpc.SupportPackageIsVersion6
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type TransformClient interface {
|
|
type TransformClient interface {
|
|
|
GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
|
|
GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
|
|
|
|
|
+ ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
|
|
|
GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
|
|
GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -623,6 +755,15 @@ func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *transformClient) ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
|
|
|
|
|
+ out := new(TokenResponse)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/transform.Transform/ParseToken", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
|
|
func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error) {
|
|
|
out := new(TreeNodes)
|
|
out := new(TreeNodes)
|
|
|
err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/transform.Transform/GetErpCityTree", in, out, opts...)
|
|
@@ -635,6 +776,7 @@ func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ..
|
|
|
// TransformServer is the server API for Transform service.
|
|
// TransformServer is the server API for Transform service.
|
|
|
type TransformServer interface {
|
|
type TransformServer interface {
|
|
|
GetUser(context.Context, *UserRequest) (*UserResponse, error)
|
|
GetUser(context.Context, *UserRequest) (*UserResponse, error)
|
|
|
|
|
+ ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
|
|
|
GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
|
|
GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -645,6 +787,9 @@ type UnimplementedTransformServer struct {
|
|
|
func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
|
|
func (*UnimplementedTransformServer) GetUser(context.Context, *UserRequest) (*UserResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (*UnimplementedTransformServer) ParseToken(context.Context, *TokenRequest) (*TokenResponse, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
|
|
|
|
|
+}
|
|
|
func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
|
|
func (*UnimplementedTransformServer) GetErpCityTree(context.Context, *Empty) (*TreeNodes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
|
|
|
}
|
|
}
|
|
@@ -671,6 +816,24 @@ func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(i
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Transform_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(TokenRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(TransformServer).ParseToken(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/transform.Transform/ParseToken",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(TransformServer).ParseToken(ctx, req.(*TokenRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(Empty)
|
|
in := new(Empty)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -697,6 +860,10 @@ var _Transform_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetUser",
|
|
MethodName: "GetUser",
|
|
|
Handler: _Transform_GetUser_Handler,
|
|
Handler: _Transform_GetUser_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "ParseToken",
|
|
|
|
|
+ Handler: _Transform_ParseToken_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "GetErpCityTree",
|
|
MethodName: "GetErpCityTree",
|
|
|
Handler: _Transform_GetErpCityTree_Handler,
|
|
Handler: _Transform_GetErpCityTree_Handler,
|