|
|
@@ -1,7 +1,7 @@
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// - protoc-gen-go-grpc v1.5.1
|
|
|
-// - protoc v6.33.0
|
|
|
+// - protoc v3.19.4
|
|
|
// source: gorpc.proto
|
|
|
|
|
|
package pb
|
|
|
@@ -9083,6 +9083,11 @@ const (
|
|
|
GoUserClient_UserDeviceDel_FullMethodName = "/gorpc.GoUserClient/UserDeviceDel"
|
|
|
GoUserClient_UserDeviceGet_FullMethodName = "/gorpc.GoUserClient/UserDeviceGet"
|
|
|
GoUserClient_UserDeviceList_FullMethodName = "/gorpc.GoUserClient/UserDeviceList"
|
|
|
+ GoUserClient_UserServiceAdd_FullMethodName = "/gorpc.GoUserClient/UserServiceAdd"
|
|
|
+ GoUserClient_UserServiceUpdate_FullMethodName = "/gorpc.GoUserClient/UserServiceUpdate"
|
|
|
+ GoUserClient_UserServiceDel_FullMethodName = "/gorpc.GoUserClient/UserServiceDel"
|
|
|
+ GoUserClient_UserServiceGet_FullMethodName = "/gorpc.GoUserClient/UserServiceGet"
|
|
|
+ GoUserClient_UserServiceList_FullMethodName = "/gorpc.GoUserClient/UserServiceList"
|
|
|
)
|
|
|
|
|
|
// GoUserClientClient is the client API for GoUserClient service.
|
|
|
@@ -9152,6 +9157,12 @@ type GoUserClientClient interface {
|
|
|
UserDeviceDel(ctx context.Context, in *UserDeviceDelReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
UserDeviceGet(ctx context.Context, in *UserDeviceGetReq, opts ...grpc.CallOption) (*UserDeviceGetResp, error)
|
|
|
UserDeviceList(ctx context.Context, in *UserDeviceListReq, opts ...grpc.CallOption) (*UserDeviceListResp, error)
|
|
|
+ // UserService
|
|
|
+ UserServiceAdd(ctx context.Context, in *UserServiceAddReq, opts ...grpc.CallOption) (*UserServiceAddResp, error)
|
|
|
+ UserServiceUpdate(ctx context.Context, in *UserServiceUpdateReq, opts ...grpc.CallOption) (*UserServiceUpdateResp, error)
|
|
|
+ UserServiceDel(ctx context.Context, in *UserServiceDelReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
+ UserServiceGet(ctx context.Context, in *UserServiceGetReq, opts ...grpc.CallOption) (*UserServiceGetResp, error)
|
|
|
+ UserServiceList(ctx context.Context, in *UserServiceListReq, opts ...grpc.CallOption) (*UserServiceListResp, error)
|
|
|
}
|
|
|
|
|
|
type goUserClientClient struct {
|
|
|
@@ -9622,6 +9633,56 @@ func (c *goUserClientClient) UserDeviceList(ctx context.Context, in *UserDeviceL
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *goUserClientClient) UserServiceAdd(ctx context.Context, in *UserServiceAddReq, opts ...grpc.CallOption) (*UserServiceAddResp, error) {
|
|
|
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
|
+ out := new(UserServiceAddResp)
|
|
|
+ err := c.cc.Invoke(ctx, GoUserClient_UserServiceAdd_FullMethodName, in, out, cOpts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *goUserClientClient) UserServiceUpdate(ctx context.Context, in *UserServiceUpdateReq, opts ...grpc.CallOption) (*UserServiceUpdateResp, error) {
|
|
|
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
|
+ out := new(UserServiceUpdateResp)
|
|
|
+ err := c.cc.Invoke(ctx, GoUserClient_UserServiceUpdate_FullMethodName, in, out, cOpts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *goUserClientClient) UserServiceDel(ctx context.Context, in *UserServiceDelReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
|
+ out := new(Empty)
|
|
|
+ err := c.cc.Invoke(ctx, GoUserClient_UserServiceDel_FullMethodName, in, out, cOpts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *goUserClientClient) UserServiceGet(ctx context.Context, in *UserServiceGetReq, opts ...grpc.CallOption) (*UserServiceGetResp, error) {
|
|
|
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
|
+ out := new(UserServiceGetResp)
|
|
|
+ err := c.cc.Invoke(ctx, GoUserClient_UserServiceGet_FullMethodName, in, out, cOpts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *goUserClientClient) UserServiceList(ctx context.Context, in *UserServiceListReq, opts ...grpc.CallOption) (*UserServiceListResp, error) {
|
|
|
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
|
+ out := new(UserServiceListResp)
|
|
|
+ err := c.cc.Invoke(ctx, GoUserClient_UserServiceList_FullMethodName, in, out, cOpts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// GoUserClientServer is the server API for GoUserClient service.
|
|
|
// All implementations must embed UnimplementedGoUserClientServer
|
|
|
// for forward compatibility.
|
|
|
@@ -9689,6 +9750,12 @@ type GoUserClientServer interface {
|
|
|
UserDeviceDel(context.Context, *UserDeviceDelReq) (*Empty, error)
|
|
|
UserDeviceGet(context.Context, *UserDeviceGetReq) (*UserDeviceGetResp, error)
|
|
|
UserDeviceList(context.Context, *UserDeviceListReq) (*UserDeviceListResp, error)
|
|
|
+ // UserService
|
|
|
+ UserServiceAdd(context.Context, *UserServiceAddReq) (*UserServiceAddResp, error)
|
|
|
+ UserServiceUpdate(context.Context, *UserServiceUpdateReq) (*UserServiceUpdateResp, error)
|
|
|
+ UserServiceDel(context.Context, *UserServiceDelReq) (*Empty, error)
|
|
|
+ UserServiceGet(context.Context, *UserServiceGetReq) (*UserServiceGetResp, error)
|
|
|
+ UserServiceList(context.Context, *UserServiceListReq) (*UserServiceListResp, error)
|
|
|
mustEmbedUnimplementedGoUserClientServer()
|
|
|
}
|
|
|
|
|
|
@@ -9837,6 +9904,21 @@ func (UnimplementedGoUserClientServer) UserDeviceGet(context.Context, *UserDevic
|
|
|
func (UnimplementedGoUserClientServer) UserDeviceList(context.Context, *UserDeviceListReq) (*UserDeviceListResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserDeviceList not implemented")
|
|
|
}
|
|
|
+func (UnimplementedGoUserClientServer) UserServiceAdd(context.Context, *UserServiceAddReq) (*UserServiceAddResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserServiceAdd not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedGoUserClientServer) UserServiceUpdate(context.Context, *UserServiceUpdateReq) (*UserServiceUpdateResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserServiceUpdate not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedGoUserClientServer) UserServiceDel(context.Context, *UserServiceDelReq) (*Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserServiceDel not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedGoUserClientServer) UserServiceGet(context.Context, *UserServiceGetReq) (*UserServiceGetResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserServiceGet not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedGoUserClientServer) UserServiceList(context.Context, *UserServiceListReq) (*UserServiceListResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UserServiceList not implemented")
|
|
|
+}
|
|
|
func (UnimplementedGoUserClientServer) mustEmbedUnimplementedGoUserClientServer() {}
|
|
|
func (UnimplementedGoUserClientServer) testEmbeddedByValue() {}
|
|
|
|
|
|
@@ -10686,6 +10768,96 @@ func _GoUserClient_UserDeviceList_Handler(srv interface{}, ctx context.Context,
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _GoUserClient_UserServiceAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UserServiceAddReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(GoUserClientServer).UserServiceAdd(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: GoUserClient_UserServiceAdd_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(GoUserClientServer).UserServiceAdd(ctx, req.(*UserServiceAddReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _GoUserClient_UserServiceUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UserServiceUpdateReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(GoUserClientServer).UserServiceUpdate(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: GoUserClient_UserServiceUpdate_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(GoUserClientServer).UserServiceUpdate(ctx, req.(*UserServiceUpdateReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _GoUserClient_UserServiceDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UserServiceDelReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(GoUserClientServer).UserServiceDel(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: GoUserClient_UserServiceDel_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(GoUserClientServer).UserServiceDel(ctx, req.(*UserServiceDelReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _GoUserClient_UserServiceGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UserServiceGetReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(GoUserClientServer).UserServiceGet(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: GoUserClient_UserServiceGet_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(GoUserClientServer).UserServiceGet(ctx, req.(*UserServiceGetReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _GoUserClient_UserServiceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UserServiceListReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(GoUserClientServer).UserServiceList(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: GoUserClient_UserServiceList_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(GoUserClientServer).UserServiceList(ctx, req.(*UserServiceListReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// GoUserClient_ServiceDesc is the grpc.ServiceDesc for GoUserClient service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
@@ -10877,6 +11049,26 @@ var GoUserClient_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "UserDeviceList",
|
|
|
Handler: _GoUserClient_UserDeviceList_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "UserServiceAdd",
|
|
|
+ Handler: _GoUserClient_UserServiceAdd_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "UserServiceUpdate",
|
|
|
+ Handler: _GoUserClient_UserServiceUpdate_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "UserServiceDel",
|
|
|
+ Handler: _GoUserClient_UserServiceDel_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "UserServiceGet",
|
|
|
+ Handler: _GoUserClient_UserServiceGet_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "UserServiceList",
|
|
|
+ Handler: _GoUserClient_UserServiceList_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "gorpc.proto",
|