|
|
@@ -25,7 +25,8 @@ var _ = math.Inf
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
type Request struct {
|
|
|
- Id int64 `protobuf:"varint,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"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
@@ -56,15 +57,25 @@ func (m *Request) XXX_DiscardUnknown() {
|
|
|
|
|
|
var xxx_messageInfo_Request proto.InternalMessageInfo
|
|
|
|
|
|
-func (m *Request) GetId() int64 {
|
|
|
+func (m *Request) GetId() string {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
- return 0
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Request) GetPhone() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Phone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
type Response struct {
|
|
|
- Id int64 `protobuf:"varint,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"`
|
|
|
+ Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"`
|
|
|
+ Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
@@ -95,10 +106,31 @@ func (m *Response) XXX_DiscardUnknown() {
|
|
|
|
|
|
var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
|
|
-func (m *Response) GetId() int64 {
|
|
|
+func (m *Response) GetId() string {
|
|
|
if m != nil {
|
|
|
return m.Id
|
|
|
}
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Response) GetPhone() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Phone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Response) GetRoles() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Roles
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Response) GetStatus() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Status
|
|
|
+ }
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
@@ -110,15 +142,18 @@ func init() {
|
|
|
func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
|
|
|
|
|
|
var fileDescriptor_cb4a498eeb2ba07d = []byte{
|
|
|
- // 120 bytes of a gzipped FileDescriptorProto
|
|
|
+ // 169 bytes of a gzipped FileDescriptorProto
|
|
|
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,
|
|
|
- 0x49, 0x72, 0xb1, 0x07, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0xf1, 0x71, 0x31, 0x65, 0xa6,
|
|
|
- 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0x31, 0x65, 0xa6, 0x28, 0x49, 0x71, 0x71, 0x04, 0xa5,
|
|
|
- 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0xa2, 0xcb, 0x19, 0xd9, 0x70, 0x71, 0x86, 0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 0xff, 0x1e, 0x2a, 0x08, 0x8a, 0xf6, 0x00, 0x00, 0x00,
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
@@ -133,7 +168,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.
|
|
|
type TransformClient interface {
|
|
|
- Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
|
+ GetUser(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
|
}
|
|
|
|
|
|
type transformClient struct {
|
|
|
@@ -144,9 +179,9 @@ func NewTransformClient(cc *grpc.ClientConn) TransformClient {
|
|
|
return &transformClient{cc}
|
|
|
}
|
|
|
|
|
|
-func (c *transformClient) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
+func (c *transformClient) GetUser(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
out := new(Response)
|
|
|
- err := c.cc.Invoke(ctx, "/transform.Transform/Ping", in, out, opts...)
|
|
|
+ err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -155,35 +190,35 @@ func (c *transformClient) Ping(ctx context.Context, in *Request, opts ...grpc.Ca
|
|
|
|
|
|
// TransformServer is the server API for Transform service.
|
|
|
type TransformServer interface {
|
|
|
- Ping(context.Context, *Request) (*Response, error)
|
|
|
+ GetUser(context.Context, *Request) (*Response, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedTransformServer can be embedded to have forward compatible implementations.
|
|
|
type UnimplementedTransformServer struct {
|
|
|
}
|
|
|
|
|
|
-func (*UnimplementedTransformServer) Ping(ctx context.Context, req *Request) (*Response, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
|
|
|
+func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *Request) (*Response, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
|
|
|
}
|
|
|
|
|
|
func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
|
|
|
s.RegisterService(&_Transform_serviceDesc, srv)
|
|
|
}
|
|
|
|
|
|
-func _Transform_Ping_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)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(TransformServer).Ping(ctx, in)
|
|
|
+ return srv.(TransformServer).GetUser(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/transform.Transform/Ping",
|
|
|
+ FullMethod: "/transform.Transform/GetUser",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(TransformServer).Ping(ctx, req.(*Request))
|
|
|
+ return srv.(TransformServer).GetUser(ctx, req.(*Request))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
@@ -193,8 +228,8 @@ var _Transform_serviceDesc = grpc.ServiceDesc{
|
|
|
HandlerType: (*TransformServer)(nil),
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
{
|
|
|
- MethodName: "Ping",
|
|
|
- Handler: _Transform_Ping_Handler,
|
|
|
+ MethodName: "GetUser",
|
|
|
+ Handler: _Transform_GetUser_Handler,
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|