|
@@ -20,6 +20,7 @@ const _ = grpc.SupportPackageIsVersion7
|
|
|
|
|
|
const (
|
|
|
Organization_GetWorkingUfByCode_FullMethodName = "/pb.Organization/GetWorkingUfByCode"
|
|
|
+ Organization_FindWorkingUfByCycle_FullMethodName = "/pb.Organization/FindWorkingUfByCycle"
|
|
|
Organization_GetWorkingRoByCode_FullMethodName = "/pb.Organization/GetWorkingRoByCode"
|
|
|
Organization_GetWorkingChestByCode_FullMethodName = "/pb.Organization/GetWorkingChestByCode"
|
|
|
Organization_GetWorkingPumpByCode_FullMethodName = "/pb.Organization/GetWorkingPumpByCode"
|
|
@@ -38,6 +39,7 @@ const (
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
|
type OrganizationClient interface {
|
|
|
GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error)
|
|
|
+ FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error)
|
|
|
GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error)
|
|
|
GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error)
|
|
|
GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error)
|
|
@@ -68,6 +70,15 @@ func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorki
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *organizationClient) FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error) {
|
|
|
+ out := new(FindWorkingUfByCycleResp)
|
|
|
+ err := c.cc.Invoke(ctx, Organization_FindWorkingUfByCycle_FullMethodName, in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error) {
|
|
|
out := new(GetWorkingRoByCodeResp)
|
|
|
err := c.cc.Invoke(ctx, Organization_GetWorkingRoByCode_FullMethodName, in, out, opts...)
|
|
@@ -172,6 +183,7 @@ func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *It
|
|
|
// for forward compatibility
|
|
|
type OrganizationServer interface {
|
|
|
GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error)
|
|
|
+ FindWorkingUfByCycle(context.Context, *FindWorkingUfByCycleReq) (*FindWorkingUfByCycleResp, error)
|
|
|
GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error)
|
|
|
GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error)
|
|
|
GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error)
|
|
@@ -193,6 +205,9 @@ type UnimplementedOrganizationServer struct {
|
|
|
func (UnimplementedOrganizationServer) GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetWorkingUfByCode not implemented")
|
|
|
}
|
|
|
+func (UnimplementedOrganizationServer) FindWorkingUfByCycle(context.Context, *FindWorkingUfByCycleReq) (*FindWorkingUfByCycleResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method FindWorkingUfByCycle not implemented")
|
|
|
+}
|
|
|
func (UnimplementedOrganizationServer) GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetWorkingRoByCode not implemented")
|
|
|
}
|
|
@@ -257,6 +272,24 @@ func _Organization_GetWorkingUfByCode_Handler(srv interface{}, ctx context.Conte
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Organization_FindWorkingUfByCycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(FindWorkingUfByCycleReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: Organization_FindWorkingUfByCycle_FullMethodName,
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, req.(*FindWorkingUfByCycleReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Organization_GetWorkingRoByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(DcWorkingReq)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -466,6 +499,10 @@ var Organization_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetWorkingUfByCode",
|
|
|
Handler: _Organization_GetWorkingUfByCode_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "FindWorkingUfByCycle",
|
|
|
+ Handler: _Organization_FindWorkingUfByCycle_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "GetWorkingRoByCode",
|
|
|
Handler: _Organization_GetWorkingRoByCode_Handler,
|