|
@@ -24,7 +24,7 @@ var _ = math.Inf
|
|
|
// proto package needs to be updated.
|
|
// proto package needs to be updated.
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
-type Request struct {
|
|
|
|
|
|
|
+type UserRequest struct {
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
@@ -32,128 +32,146 @@ type Request struct {
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Request) Reset() { *m = Request{} }
|
|
|
|
|
-func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
-func (*Request) ProtoMessage() {}
|
|
|
|
|
-func (*Request) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+func (m *UserRequest) Reset() { *m = UserRequest{} }
|
|
|
|
|
+func (m *UserRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
+func (*UserRequest) ProtoMessage() {}
|
|
|
|
|
+func (*UserRequest) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_cb4a498eeb2ba07d, []int{0}
|
|
return fileDescriptor_cb4a498eeb2ba07d, []int{0}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Request) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
- return xxx_messageInfo_Request.Unmarshal(m, b)
|
|
|
|
|
|
|
+func (m *UserRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
+ return xxx_messageInfo_UserRequest.Unmarshal(m, b)
|
|
|
}
|
|
}
|
|
|
-func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
- return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
|
|
|
|
|
|
+func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
+ return xxx_messageInfo_UserRequest.Marshal(b, m, deterministic)
|
|
|
}
|
|
}
|
|
|
-func (m *Request) XXX_Merge(src proto.Message) {
|
|
|
|
|
- xxx_messageInfo_Request.Merge(m, src)
|
|
|
|
|
|
|
+func (m *UserRequest) XXX_Merge(src proto.Message) {
|
|
|
|
|
+ xxx_messageInfo_UserRequest.Merge(m, src)
|
|
|
}
|
|
}
|
|
|
-func (m *Request) XXX_Size() int {
|
|
|
|
|
- return xxx_messageInfo_Request.Size(m)
|
|
|
|
|
|
|
+func (m *UserRequest) XXX_Size() int {
|
|
|
|
|
+ return xxx_messageInfo_UserRequest.Size(m)
|
|
|
}
|
|
}
|
|
|
-func (m *Request) XXX_DiscardUnknown() {
|
|
|
|
|
- xxx_messageInfo_Request.DiscardUnknown(m)
|
|
|
|
|
|
|
+func (m *UserRequest) XXX_DiscardUnknown() {
|
|
|
|
|
+ xxx_messageInfo_UserRequest.DiscardUnknown(m)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var xxx_messageInfo_Request proto.InternalMessageInfo
|
|
|
|
|
|
|
+var xxx_messageInfo_UserRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
-func (m *Request) GetId() string {
|
|
|
|
|
|
|
+func (m *UserRequest) GetId() string {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Id
|
|
return m.Id
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Request) GetPhone() string {
|
|
|
|
|
|
|
+func (m *UserRequest) GetPhone() string {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Phone
|
|
return m.Phone
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type Response struct {
|
|
|
|
|
|
|
+type UserResponse struct {
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
|
Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
|
|
Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
|
|
|
Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
|
+ IsJzMem bool `protobuf:"varint,5,opt,name=isJzMem,proto3" json:"isJzMem,omitempty"`
|
|
|
|
|
+ IsJzMk bool `protobuf:"varint,6,opt,name=isJzMk,proto3" json:"isJzMk,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Response) Reset() { *m = Response{} }
|
|
|
|
|
-func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
-func (*Response) ProtoMessage() {}
|
|
|
|
|
-func (*Response) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+func (m *UserResponse) Reset() { *m = UserResponse{} }
|
|
|
|
|
+func (m *UserResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
+func (*UserResponse) ProtoMessage() {}
|
|
|
|
|
+func (*UserResponse) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_cb4a498eeb2ba07d, []int{1}
|
|
return fileDescriptor_cb4a498eeb2ba07d, []int{1}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Response) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
- return xxx_messageInfo_Response.Unmarshal(m, b)
|
|
|
|
|
|
|
+func (m *UserResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
+ return xxx_messageInfo_UserResponse.Unmarshal(m, b)
|
|
|
}
|
|
}
|
|
|
-func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
- return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
|
|
|
|
|
|
+func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
+ return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic)
|
|
|
}
|
|
}
|
|
|
-func (m *Response) XXX_Merge(src proto.Message) {
|
|
|
|
|
- xxx_messageInfo_Response.Merge(m, src)
|
|
|
|
|
|
|
+func (m *UserResponse) XXX_Merge(src proto.Message) {
|
|
|
|
|
+ xxx_messageInfo_UserResponse.Merge(m, src)
|
|
|
}
|
|
}
|
|
|
-func (m *Response) XXX_Size() int {
|
|
|
|
|
- return xxx_messageInfo_Response.Size(m)
|
|
|
|
|
|
|
+func (m *UserResponse) XXX_Size() int {
|
|
|
|
|
+ return xxx_messageInfo_UserResponse.Size(m)
|
|
|
}
|
|
}
|
|
|
-func (m *Response) XXX_DiscardUnknown() {
|
|
|
|
|
- xxx_messageInfo_Response.DiscardUnknown(m)
|
|
|
|
|
|
|
+func (m *UserResponse) XXX_DiscardUnknown() {
|
|
|
|
|
+ xxx_messageInfo_UserResponse.DiscardUnknown(m)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
|
|
|
+var xxx_messageInfo_UserResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
-func (m *Response) GetId() string {
|
|
|
|
|
|
|
+func (m *UserResponse) GetId() string {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Id
|
|
return m.Id
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Response) GetPhone() string {
|
|
|
|
|
|
|
+func (m *UserResponse) GetPhone() string {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Phone
|
|
return m.Phone
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Response) GetRoles() string {
|
|
|
|
|
|
|
+func (m *UserResponse) GetRoles() string {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Roles
|
|
return m.Roles
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Response) GetStatus() int64 {
|
|
|
|
|
|
|
+func (m *UserResponse) GetStatus() int64 {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Status
|
|
return m.Status
|
|
|
}
|
|
}
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (m *UserResponse) GetIsJzMem() bool {
|
|
|
|
|
+ if m != nil {
|
|
|
|
|
+ return m.IsJzMem
|
|
|
|
|
+ }
|
|
|
|
|
+ return false
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (m *UserResponse) GetIsJzMk() bool {
|
|
|
|
|
+ if m != nil {
|
|
|
|
|
+ return m.IsJzMk
|
|
|
|
|
+ }
|
|
|
|
|
+ return false
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func init() {
|
|
func init() {
|
|
|
- proto.RegisterType((*Request)(nil), "transform.Request")
|
|
|
|
|
- proto.RegisterType((*Response)(nil), "transform.Response")
|
|
|
|
|
|
|
+ proto.RegisterType((*UserRequest)(nil), "transform.UserRequest")
|
|
|
|
|
+ proto.RegisterType((*UserResponse)(nil), "transform.UserResponse")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
|
|
func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
|
|
|
|
|
|
|
|
var fileDescriptor_cb4a498eeb2ba07d = []byte{
|
|
var fileDescriptor_cb4a498eeb2ba07d = []byte{
|
|
|
- // 169 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
|
+ // 203 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x29, 0x4a, 0xcc,
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x29, 0x4a, 0xcc,
|
|
|
0x2b, 0x4e, 0xcb, 0x2f, 0xca, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0x0b, 0x28,
|
|
0x2b, 0x4e, 0xcb, 0x2f, 0xca, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0x0b, 0x28,
|
|
|
- 0xe9, 0x73, 0xb1, 0x07, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0xf1, 0x71, 0x31, 0x65, 0xa6,
|
|
|
|
|
- 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x31, 0x65, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x64,
|
|
|
|
|
- 0xe4, 0xe7, 0xa5, 0x4a, 0x30, 0x81, 0x85, 0x20, 0x1c, 0xa5, 0x38, 0x2e, 0x8e, 0xa0, 0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0x21, 0x31, 0x2e, 0xb6, 0xe2, 0x92, 0xc4,
|
|
|
|
|
+ 0x92, 0xd2, 0x62, 0x09, 0x16, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x28, 0x4f, 0x48, 0x82, 0x8b, 0x3d,
|
|
|
|
|
+ 0xb3, 0xd8, 0xab, 0xca, 0x37, 0x35, 0x57, 0x82, 0x55, 0x81, 0x51, 0x83, 0x23, 0x08, 0xc6, 0x05,
|
|
|
|
|
+ 0xe9, 0x00, 0x33, 0xb3, 0x25, 0xd8, 0xc0, 0x12, 0x50, 0x9e, 0x91, 0x3b, 0x17, 0x67, 0x08, 0xcc,
|
|
|
|
|
+ 0x63, 0x42, 0x56, 0x5c, 0xec, 0xee, 0xa9, 0x25, 0x20, 0x57, 0x0a, 0x89, 0xe9, 0x21, 0x02, 0x00,
|
|
|
|
|
+ 0xc9, 0xb3, 0x52, 0xe2, 0x18, 0xe2, 0x10, 0xef, 0x24, 0xb1, 0x81, 0x83, 0xc9, 0x18, 0x10, 0x00,
|
|
|
|
|
+ 0x00, 0xff, 0xff, 0x14, 0x18, 0x85, 0x2f, 0x39, 0x01, 0x00, 0x00,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -168,7 +186,7 @@ const _ = grpc.SupportPackageIsVersion4
|
|
|
//
|
|
//
|
|
|
// 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 *Request, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
|
|
|
+ GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type transformClient struct {
|
|
type transformClient struct {
|
|
@@ -179,8 +197,8 @@ func NewTransformClient(cc *grpc.ClientConn) TransformClient {
|
|
|
return &transformClient{cc}
|
|
return &transformClient{cc}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (c *transformClient) GetUser(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
|
|
- out := new(Response)
|
|
|
|
|
|
|
+func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) {
|
|
|
|
|
+ out := new(UserResponse)
|
|
|
err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return nil, err
|
|
return nil, err
|
|
@@ -190,14 +208,14 @@ func (c *transformClient) GetUser(ctx context.Context, in *Request, opts ...grpc
|
|
|
|
|
|
|
|
// 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, *Request) (*Response, error)
|
|
|
|
|
|
|
+ GetUser(context.Context, *UserRequest) (*UserResponse, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedTransformServer can be embedded to have forward compatible implementations.
|
|
// UnimplementedTransformServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedTransformServer struct {
|
|
type UnimplementedTransformServer struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *Request) (*Response, error) {
|
|
|
|
|
|
|
+func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *UserRequest) (*UserResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -206,7 +224,7 @@ func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(Request)
|
|
|
|
|
|
|
+ in := new(UserRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
return nil, err
|
|
|
}
|
|
}
|
|
@@ -218,7 +236,7 @@ func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(i
|
|
|
FullMethod: "/transform.Transform/GetUser",
|
|
FullMethod: "/transform.Transform/GetUser",
|
|
|
}
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(TransformServer).GetUser(ctx, req.(*Request))
|
|
|
|
|
|
|
+ return srv.(TransformServer).GetUser(ctx, req.(*UserRequest))
|
|
|
}
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|