123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v3.20.3
- // source: datacenter.proto
- package pb
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- 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"
- Organization_GetWorkingValveByCode_FullMethodName = "/pb.Organization/GetWorkingValveByCode"
- Organization_MultiAddItemHistoryData_FullMethodName = "/pb.Organization/MultiAddItemHistoryData"
- Organization_ItemHistoryDataList_FullMethodName = "/pb.Organization/ItemHistoryDataList"
- Organization_ItemHistoryDataByTime_FullMethodName = "/pb.Organization/ItemHistoryDataByTime"
- Organization_ItemHistoryDataMaxMinByTime_FullMethodName = "/pb.Organization/ItemHistoryDataMaxMinByTime"
- Organization_ItemHistoryDataFirstLastByTime_FullMethodName = "/pb.Organization/ItemHistoryDataFirstLastByTime"
- Organization_ChangeTypeItemHistoryData_FullMethodName = "/pb.Organization/ChangeTypeItemHistoryData"
- Organization_ItemHistoryDataForChart_FullMethodName = "/pb.Organization/ItemHistoryDataForChart"
- Organization_FindAppList_FullMethodName = "/pb.Organization/FindAppList"
- Organization_GetAppInfo_FullMethodName = "/pb.Organization/GetAppInfo"
- Organization_CreateAppInfo_FullMethodName = "/pb.Organization/CreateAppInfo"
- Organization_RemoveAppInfo_FullMethodName = "/pb.Organization/RemoveAppInfo"
- Organization_DisableAppInfo_FullMethodName = "/pb.Organization/DisableAppInfo"
- Organization_EnableAppInfo_FullMethodName = "/pb.Organization/EnableAppInfo"
- Organization_ResetAppSecret_FullMethodName = "/pb.Organization/ResetAppSecret"
- Organization_ExpireAppSecret_FullMethodName = "/pb.Organization/ExpireAppSecret"
- Organization_ResetAppProject_FullMethodName = "/pb.Organization/ResetAppProject"
- Organization_FindDataDescribe_FullMethodName = "/pb.Organization/FindDataDescribe"
- Organization_FindDataMinAndMax_FullMethodName = "/pb.Organization/FindDataMinAndMax"
- Organization_FindDataCorrelation_FullMethodName = "/pb.Organization/FindDataCorrelation"
- Organization_CurrentData_FullMethodName = "/pb.Organization/CurrentData"
- Organization_Health_FullMethodName = "/pb.Organization/Health"
- )
- // OrganizationClient is the client API for Organization service.
- //
- // 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)
- GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error)
- MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error)
- ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
- ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
- ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error)
- ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
- ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
- ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error)
- FindAppList(ctx context.Context, in *FindAppListReq, opts ...grpc.CallOption) (*FindAppListResp, error)
- GetAppInfo(ctx context.Context, in *GetAppInfoReq, opts ...grpc.CallOption) (*GetAppInfoResp, error)
- CreateAppInfo(ctx context.Context, in *CreateAppInfoReq, opts ...grpc.CallOption) (*CreateAppInfoResp, error)
- RemoveAppInfo(ctx context.Context, in *RemoveAppInfoReq, opts ...grpc.CallOption) (*RemoveAppInfoResp, error)
- DisableAppInfo(ctx context.Context, in *DisableAppInfoReq, opts ...grpc.CallOption) (*DisableAppInfoResp, error)
- EnableAppInfo(ctx context.Context, in *EnableAppInfoReq, opts ...grpc.CallOption) (*EnableAppInfoResp, error)
- ResetAppSecret(ctx context.Context, in *ResetAppSecretReq, opts ...grpc.CallOption) (*ResetAppSecretResp, error)
- ExpireAppSecret(ctx context.Context, in *ExpireAppSecretReq, opts ...grpc.CallOption) (*ExpireAppSecretResp, error)
- ResetAppProject(ctx context.Context, in *ResetAppProjectReq, opts ...grpc.CallOption) (*ResetAppProjectResp, error)
- FindDataDescribe(ctx context.Context, in *FindDataDescribeReq, opts ...grpc.CallOption) (*FindDataDescribeResp, error)
- FindDataMinAndMax(ctx context.Context, in *FindDataMinAndMaxReq, opts ...grpc.CallOption) (*FindDataMinAndMaxResp, error)
- FindDataCorrelation(ctx context.Context, in *FindDataCorrelationReq, opts ...grpc.CallOption) (*FindDataCorrelationResp, error)
- CurrentData(ctx context.Context, in *CurrentDataReq, opts ...grpc.CallOption) (*CurrentDataResp, error)
- Health(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthResp, error)
- }
- type organizationClient struct {
- cc grpc.ClientConnInterface
- }
- func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient {
- return &organizationClient{cc}
- }
- func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error) {
- out := new(GetWorkingUfByCodeResp)
- err := c.cc.Invoke(ctx, Organization_GetWorkingUfByCode_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- 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...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error) {
- out := new(GetWorkingChestByCodeResp)
- err := c.cc.Invoke(ctx, Organization_GetWorkingChestByCode_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error) {
- out := new(GetWorkingPumpByCodeResp)
- err := c.cc.Invoke(ctx, Organization_GetWorkingPumpByCode_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error) {
- out := new(GetWorkingValveByCodeResp)
- err := c.cc.Invoke(ctx, Organization_GetWorkingValveByCode_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error) {
- out := new(MultiAddItemHistoryDataResp)
- err := c.cc.Invoke(ctx, Organization_MultiAddItemHistoryData_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
- out := new(ItemHistoryDataListResp)
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
- out := new(ItemHistoryDataListResp)
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataByTime_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error) {
- out := new(ItemHistoryDataMaxMinResp)
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataMaxMinByTime_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error) {
- out := new(ItemHistoryDataFirstLastResp)
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataFirstLastByTime_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
- out := new(ChangeTypeItemHistoryDataResp)
- err := c.cc.Invoke(ctx, Organization_ChangeTypeItemHistoryData_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error) {
- out := new(ItemHistoryDataForChartResp)
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataForChart_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) FindAppList(ctx context.Context, in *FindAppListReq, opts ...grpc.CallOption) (*FindAppListResp, error) {
- out := new(FindAppListResp)
- err := c.cc.Invoke(ctx, Organization_FindAppList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) GetAppInfo(ctx context.Context, in *GetAppInfoReq, opts ...grpc.CallOption) (*GetAppInfoResp, error) {
- out := new(GetAppInfoResp)
- err := c.cc.Invoke(ctx, Organization_GetAppInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) CreateAppInfo(ctx context.Context, in *CreateAppInfoReq, opts ...grpc.CallOption) (*CreateAppInfoResp, error) {
- out := new(CreateAppInfoResp)
- err := c.cc.Invoke(ctx, Organization_CreateAppInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RemoveAppInfo(ctx context.Context, in *RemoveAppInfoReq, opts ...grpc.CallOption) (*RemoveAppInfoResp, error) {
- out := new(RemoveAppInfoResp)
- err := c.cc.Invoke(ctx, Organization_RemoveAppInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) DisableAppInfo(ctx context.Context, in *DisableAppInfoReq, opts ...grpc.CallOption) (*DisableAppInfoResp, error) {
- out := new(DisableAppInfoResp)
- err := c.cc.Invoke(ctx, Organization_DisableAppInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) EnableAppInfo(ctx context.Context, in *EnableAppInfoReq, opts ...grpc.CallOption) (*EnableAppInfoResp, error) {
- out := new(EnableAppInfoResp)
- err := c.cc.Invoke(ctx, Organization_EnableAppInfo_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ResetAppSecret(ctx context.Context, in *ResetAppSecretReq, opts ...grpc.CallOption) (*ResetAppSecretResp, error) {
- out := new(ResetAppSecretResp)
- err := c.cc.Invoke(ctx, Organization_ResetAppSecret_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ExpireAppSecret(ctx context.Context, in *ExpireAppSecretReq, opts ...grpc.CallOption) (*ExpireAppSecretResp, error) {
- out := new(ExpireAppSecretResp)
- err := c.cc.Invoke(ctx, Organization_ExpireAppSecret_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ResetAppProject(ctx context.Context, in *ResetAppProjectReq, opts ...grpc.CallOption) (*ResetAppProjectResp, error) {
- out := new(ResetAppProjectResp)
- err := c.cc.Invoke(ctx, Organization_ResetAppProject_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) FindDataDescribe(ctx context.Context, in *FindDataDescribeReq, opts ...grpc.CallOption) (*FindDataDescribeResp, error) {
- out := new(FindDataDescribeResp)
- err := c.cc.Invoke(ctx, Organization_FindDataDescribe_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) FindDataMinAndMax(ctx context.Context, in *FindDataMinAndMaxReq, opts ...grpc.CallOption) (*FindDataMinAndMaxResp, error) {
- out := new(FindDataMinAndMaxResp)
- err := c.cc.Invoke(ctx, Organization_FindDataMinAndMax_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) FindDataCorrelation(ctx context.Context, in *FindDataCorrelationReq, opts ...grpc.CallOption) (*FindDataCorrelationResp, error) {
- out := new(FindDataCorrelationResp)
- err := c.cc.Invoke(ctx, Organization_FindDataCorrelation_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) CurrentData(ctx context.Context, in *CurrentDataReq, opts ...grpc.CallOption) (*CurrentDataResp, error) {
- out := new(CurrentDataResp)
- err := c.cc.Invoke(ctx, Organization_CurrentData_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) Health(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthResp, error) {
- out := new(HealthResp)
- err := c.cc.Invoke(ctx, Organization_Health_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // OrganizationServer is the server API for Organization service.
- // All implementations must embed UnimplementedOrganizationServer
- // 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)
- GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error)
- MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error)
- ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error)
- ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error)
- ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error)
- ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
- ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
- ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error)
- FindAppList(context.Context, *FindAppListReq) (*FindAppListResp, error)
- GetAppInfo(context.Context, *GetAppInfoReq) (*GetAppInfoResp, error)
- CreateAppInfo(context.Context, *CreateAppInfoReq) (*CreateAppInfoResp, error)
- RemoveAppInfo(context.Context, *RemoveAppInfoReq) (*RemoveAppInfoResp, error)
- DisableAppInfo(context.Context, *DisableAppInfoReq) (*DisableAppInfoResp, error)
- EnableAppInfo(context.Context, *EnableAppInfoReq) (*EnableAppInfoResp, error)
- ResetAppSecret(context.Context, *ResetAppSecretReq) (*ResetAppSecretResp, error)
- ExpireAppSecret(context.Context, *ExpireAppSecretReq) (*ExpireAppSecretResp, error)
- ResetAppProject(context.Context, *ResetAppProjectReq) (*ResetAppProjectResp, error)
- FindDataDescribe(context.Context, *FindDataDescribeReq) (*FindDataDescribeResp, error)
- FindDataMinAndMax(context.Context, *FindDataMinAndMaxReq) (*FindDataMinAndMaxResp, error)
- FindDataCorrelation(context.Context, *FindDataCorrelationReq) (*FindDataCorrelationResp, error)
- CurrentData(context.Context, *CurrentDataReq) (*CurrentDataResp, error)
- Health(context.Context, *HealthReq) (*HealthResp, error)
- mustEmbedUnimplementedOrganizationServer()
- }
- // UnimplementedOrganizationServer must be embedded to have forward compatible implementations.
- 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")
- }
- func (UnimplementedOrganizationServer) GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetWorkingChestByCode not implemented")
- }
- func (UnimplementedOrganizationServer) GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetWorkingPumpByCode not implemented")
- }
- func (UnimplementedOrganizationServer) GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetWorkingValveByCode not implemented")
- }
- func (UnimplementedOrganizationServer) MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MultiAddItemHistoryData not implemented")
- }
- func (UnimplementedOrganizationServer) ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataList not implemented")
- }
- func (UnimplementedOrganizationServer) ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataByTime not implemented")
- }
- func (UnimplementedOrganizationServer) ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataMaxMinByTime not implemented")
- }
- func (UnimplementedOrganizationServer) ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataFirstLastByTime not implemented")
- }
- func (UnimplementedOrganizationServer) ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangeTypeItemHistoryData not implemented")
- }
- func (UnimplementedOrganizationServer) ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataForChart not implemented")
- }
- func (UnimplementedOrganizationServer) FindAppList(context.Context, *FindAppListReq) (*FindAppListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindAppList not implemented")
- }
- func (UnimplementedOrganizationServer) GetAppInfo(context.Context, *GetAppInfoReq) (*GetAppInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetAppInfo not implemented")
- }
- func (UnimplementedOrganizationServer) CreateAppInfo(context.Context, *CreateAppInfoReq) (*CreateAppInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateAppInfo not implemented")
- }
- func (UnimplementedOrganizationServer) RemoveAppInfo(context.Context, *RemoveAppInfoReq) (*RemoveAppInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RemoveAppInfo not implemented")
- }
- func (UnimplementedOrganizationServer) DisableAppInfo(context.Context, *DisableAppInfoReq) (*DisableAppInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DisableAppInfo not implemented")
- }
- func (UnimplementedOrganizationServer) EnableAppInfo(context.Context, *EnableAppInfoReq) (*EnableAppInfoResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EnableAppInfo not implemented")
- }
- func (UnimplementedOrganizationServer) ResetAppSecret(context.Context, *ResetAppSecretReq) (*ResetAppSecretResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ResetAppSecret not implemented")
- }
- func (UnimplementedOrganizationServer) ExpireAppSecret(context.Context, *ExpireAppSecretReq) (*ExpireAppSecretResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExpireAppSecret not implemented")
- }
- func (UnimplementedOrganizationServer) ResetAppProject(context.Context, *ResetAppProjectReq) (*ResetAppProjectResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ResetAppProject not implemented")
- }
- func (UnimplementedOrganizationServer) FindDataDescribe(context.Context, *FindDataDescribeReq) (*FindDataDescribeResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindDataDescribe not implemented")
- }
- func (UnimplementedOrganizationServer) FindDataMinAndMax(context.Context, *FindDataMinAndMaxReq) (*FindDataMinAndMaxResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindDataMinAndMax not implemented")
- }
- func (UnimplementedOrganizationServer) FindDataCorrelation(context.Context, *FindDataCorrelationReq) (*FindDataCorrelationResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindDataCorrelation not implemented")
- }
- func (UnimplementedOrganizationServer) CurrentData(context.Context, *CurrentDataReq) (*CurrentDataResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CurrentData not implemented")
- }
- func (UnimplementedOrganizationServer) Health(context.Context, *HealthReq) (*HealthResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Health not implemented")
- }
- func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {}
- // UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to OrganizationServer will
- // result in compilation errors.
- type UnsafeOrganizationServer interface {
- mustEmbedUnimplementedOrganizationServer()
- }
- func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer) {
- s.RegisterService(&Organization_ServiceDesc, srv)
- }
- func _Organization_GetWorkingUfByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DcWorkingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetWorkingUfByCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetWorkingUfByCode_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetWorkingUfByCode(ctx, req.(*DcWorkingReq))
- }
- 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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetWorkingRoByCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetWorkingRoByCode_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetWorkingRoByCode(ctx, req.(*DcWorkingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_GetWorkingChestByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DcWorkingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetWorkingChestByCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetWorkingChestByCode_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetWorkingChestByCode(ctx, req.(*DcWorkingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_GetWorkingPumpByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DcWorkingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetWorkingPumpByCode_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, req.(*DcWorkingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_GetWorkingValveByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DcWorkingReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetWorkingValveByCode(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetWorkingValveByCode_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetWorkingValveByCode(ctx, req.(*DcWorkingReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_MultiAddItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MultiAddItemHistoryDataReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_MultiAddItemHistoryData_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, req.(*MultiAddItemHistoryDataReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ItemHistoryDataList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ItemHistoryDataList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ItemHistoryDataList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ItemHistoryDataList(ctx, req.(*ItemHistoryDataListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ItemHistoryDataByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataByTimeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ItemHistoryDataByTime_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, req.(*ItemHistoryDataByTimeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ItemHistoryDataMaxMinByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataByTimeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ItemHistoryDataMaxMinByTime_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, req.(*ItemHistoryDataByTimeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ItemHistoryDataFirstLastByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataByTimeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ItemHistoryDataFirstLastByTime_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, req.(*ItemHistoryDataByTimeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ChangeTypeItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataByTimeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ChangeTypeItemHistoryData_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ItemHistoryDataForChart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ItemHistoryDataForChartReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ItemHistoryDataForChart_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, req.(*ItemHistoryDataForChartReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_FindAppList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindAppListReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).FindAppList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_FindAppList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).FindAppList(ctx, req.(*FindAppListReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_GetAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetAppInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).GetAppInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_GetAppInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).GetAppInfo(ctx, req.(*GetAppInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_CreateAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateAppInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).CreateAppInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_CreateAppInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).CreateAppInfo(ctx, req.(*CreateAppInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RemoveAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RemoveAppInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RemoveAppInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_RemoveAppInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RemoveAppInfo(ctx, req.(*RemoveAppInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_DisableAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DisableAppInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).DisableAppInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_DisableAppInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).DisableAppInfo(ctx, req.(*DisableAppInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_EnableAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(EnableAppInfoReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).EnableAppInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_EnableAppInfo_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).EnableAppInfo(ctx, req.(*EnableAppInfoReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ResetAppSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ResetAppSecretReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ResetAppSecret(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ResetAppSecret_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ResetAppSecret(ctx, req.(*ResetAppSecretReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ExpireAppSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExpireAppSecretReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ExpireAppSecret(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ExpireAppSecret_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ExpireAppSecret(ctx, req.(*ExpireAppSecretReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ResetAppProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ResetAppProjectReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ResetAppProject(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_ResetAppProject_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ResetAppProject(ctx, req.(*ResetAppProjectReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_FindDataDescribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindDataDescribeReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).FindDataDescribe(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_FindDataDescribe_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).FindDataDescribe(ctx, req.(*FindDataDescribeReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_FindDataMinAndMax_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindDataMinAndMaxReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).FindDataMinAndMax(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_FindDataMinAndMax_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).FindDataMinAndMax(ctx, req.(*FindDataMinAndMaxReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_FindDataCorrelation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindDataCorrelationReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).FindDataCorrelation(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_FindDataCorrelation_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).FindDataCorrelation(ctx, req.(*FindDataCorrelationReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_CurrentData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CurrentDataReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).CurrentData(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_CurrentData_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).CurrentData(ctx, req.(*CurrentDataReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(HealthReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).Health(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Organization_Health_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).Health(ctx, req.(*HealthReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- // Organization_ServiceDesc is the grpc.ServiceDesc for Organization service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var Organization_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "pb.Organization",
- HandlerType: (*OrganizationServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetWorkingUfByCode",
- Handler: _Organization_GetWorkingUfByCode_Handler,
- },
- {
- MethodName: "FindWorkingUfByCycle",
- Handler: _Organization_FindWorkingUfByCycle_Handler,
- },
- {
- MethodName: "GetWorkingRoByCode",
- Handler: _Organization_GetWorkingRoByCode_Handler,
- },
- {
- MethodName: "GetWorkingChestByCode",
- Handler: _Organization_GetWorkingChestByCode_Handler,
- },
- {
- MethodName: "GetWorkingPumpByCode",
- Handler: _Organization_GetWorkingPumpByCode_Handler,
- },
- {
- MethodName: "GetWorkingValveByCode",
- Handler: _Organization_GetWorkingValveByCode_Handler,
- },
- {
- MethodName: "MultiAddItemHistoryData",
- Handler: _Organization_MultiAddItemHistoryData_Handler,
- },
- {
- MethodName: "ItemHistoryDataList",
- Handler: _Organization_ItemHistoryDataList_Handler,
- },
- {
- MethodName: "ItemHistoryDataByTime",
- Handler: _Organization_ItemHistoryDataByTime_Handler,
- },
- {
- MethodName: "ItemHistoryDataMaxMinByTime",
- Handler: _Organization_ItemHistoryDataMaxMinByTime_Handler,
- },
- {
- MethodName: "ItemHistoryDataFirstLastByTime",
- Handler: _Organization_ItemHistoryDataFirstLastByTime_Handler,
- },
- {
- MethodName: "ChangeTypeItemHistoryData",
- Handler: _Organization_ChangeTypeItemHistoryData_Handler,
- },
- {
- MethodName: "ItemHistoryDataForChart",
- Handler: _Organization_ItemHistoryDataForChart_Handler,
- },
- {
- MethodName: "FindAppList",
- Handler: _Organization_FindAppList_Handler,
- },
- {
- MethodName: "GetAppInfo",
- Handler: _Organization_GetAppInfo_Handler,
- },
- {
- MethodName: "CreateAppInfo",
- Handler: _Organization_CreateAppInfo_Handler,
- },
- {
- MethodName: "RemoveAppInfo",
- Handler: _Organization_RemoveAppInfo_Handler,
- },
- {
- MethodName: "DisableAppInfo",
- Handler: _Organization_DisableAppInfo_Handler,
- },
- {
- MethodName: "EnableAppInfo",
- Handler: _Organization_EnableAppInfo_Handler,
- },
- {
- MethodName: "ResetAppSecret",
- Handler: _Organization_ResetAppSecret_Handler,
- },
- {
- MethodName: "ExpireAppSecret",
- Handler: _Organization_ExpireAppSecret_Handler,
- },
- {
- MethodName: "ResetAppProject",
- Handler: _Organization_ResetAppProject_Handler,
- },
- {
- MethodName: "FindDataDescribe",
- Handler: _Organization_FindDataDescribe_Handler,
- },
- {
- MethodName: "FindDataMinAndMax",
- Handler: _Organization_FindDataMinAndMax_Handler,
- },
- {
- MethodName: "FindDataCorrelation",
- Handler: _Organization_FindDataCorrelation_Handler,
- },
- {
- MethodName: "CurrentData",
- Handler: _Organization_CurrentData_Handler,
- },
- {
- MethodName: "Health",
- Handler: _Organization_Health_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "datacenter.proto",
- }
|