|
@@ -1,7 +1,7 @@
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// versions:
|
|
-// - protoc-gen-go-grpc v1.3.0
|
|
|
|
-// - protoc v3.21.12
|
|
|
|
|
|
+// - protoc-gen-go-grpc v1.2.0
|
|
|
|
+// - protoc v4.23.4
|
|
// source: organization.proto
|
|
// source: organization.proto
|
|
|
|
|
|
package pb
|
|
package pb
|
|
@@ -18,22 +18,6 @@ import (
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
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"
|
|
|
|
-)
|
|
|
|
-
|
|
|
|
// OrganizationClient is the client API for Organization service.
|
|
// 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.
|
|
// 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.
|
|
@@ -51,6 +35,15 @@ type OrganizationClient interface {
|
|
ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
|
|
ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
|
|
ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
|
|
ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
|
|
ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, 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)
|
|
}
|
|
}
|
|
|
|
|
|
type organizationClient struct {
|
|
type organizationClient struct {
|
|
@@ -63,7 +56,7 @@ func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient {
|
|
|
|
|
|
func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error) {
|
|
func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error) {
|
|
out := new(GetWorkingUfByCodeResp)
|
|
out := new(GetWorkingUfByCodeResp)
|
|
- err := c.cc.Invoke(ctx, Organization_GetWorkingUfByCode_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/GetWorkingUfByCode", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -72,7 +65,7 @@ func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorki
|
|
|
|
|
|
func (c *organizationClient) FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error) {
|
|
func (c *organizationClient) FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error) {
|
|
out := new(FindWorkingUfByCycleResp)
|
|
out := new(FindWorkingUfByCycleResp)
|
|
- err := c.cc.Invoke(ctx, Organization_FindWorkingUfByCycle_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/FindWorkingUfByCycle", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -81,7 +74,7 @@ func (c *organizationClient) FindWorkingUfByCycle(ctx context.Context, in *FindW
|
|
|
|
|
|
func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error) {
|
|
func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error) {
|
|
out := new(GetWorkingRoByCodeResp)
|
|
out := new(GetWorkingRoByCodeResp)
|
|
- err := c.cc.Invoke(ctx, Organization_GetWorkingRoByCode_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/GetWorkingRoByCode", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -90,7 +83,7 @@ func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorki
|
|
|
|
|
|
func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error) {
|
|
func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error) {
|
|
out := new(GetWorkingChestByCodeResp)
|
|
out := new(GetWorkingChestByCodeResp)
|
|
- err := c.cc.Invoke(ctx, Organization_GetWorkingChestByCode_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/GetWorkingChestByCode", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -99,7 +92,7 @@ func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWo
|
|
|
|
|
|
func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error) {
|
|
func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error) {
|
|
out := new(GetWorkingPumpByCodeResp)
|
|
out := new(GetWorkingPumpByCodeResp)
|
|
- err := c.cc.Invoke(ctx, Organization_GetWorkingPumpByCode_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/GetWorkingPumpByCode", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -108,7 +101,7 @@ func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWor
|
|
|
|
|
|
func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error) {
|
|
func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error) {
|
|
out := new(GetWorkingValveByCodeResp)
|
|
out := new(GetWorkingValveByCodeResp)
|
|
- err := c.cc.Invoke(ctx, Organization_GetWorkingValveByCode_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/GetWorkingValveByCode", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -117,7 +110,7 @@ func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWo
|
|
|
|
|
|
func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error) {
|
|
func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error) {
|
|
out := new(MultiAddItemHistoryDataResp)
|
|
out := new(MultiAddItemHistoryDataResp)
|
|
- err := c.cc.Invoke(ctx, Organization_MultiAddItemHistoryData_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/MultiAddItemHistoryData", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -126,7 +119,7 @@ func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *Mu
|
|
|
|
|
|
func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
|
|
func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
|
|
out := new(ItemHistoryDataListResp)
|
|
out := new(ItemHistoryDataListResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataList_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ItemHistoryDataList", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -135,7 +128,7 @@ func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHi
|
|
|
|
|
|
func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
|
|
func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
|
|
out := new(ItemHistoryDataListResp)
|
|
out := new(ItemHistoryDataListResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataByTime_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ItemHistoryDataByTime", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -144,7 +137,7 @@ func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *Item
|
|
|
|
|
|
func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error) {
|
|
func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error) {
|
|
out := new(ItemHistoryDataMaxMinResp)
|
|
out := new(ItemHistoryDataMaxMinResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataMaxMinByTime_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ItemHistoryDataMaxMinByTime", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -153,7 +146,7 @@ func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in
|
|
|
|
|
|
func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error) {
|
|
func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error) {
|
|
out := new(ItemHistoryDataFirstLastResp)
|
|
out := new(ItemHistoryDataFirstLastResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataFirstLastByTime_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ItemHistoryDataFirstLastByTime", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -162,7 +155,7 @@ func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context,
|
|
|
|
|
|
func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
|
|
func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
|
|
out := new(ChangeTypeItemHistoryDataResp)
|
|
out := new(ChangeTypeItemHistoryDataResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ChangeTypeItemHistoryData_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ChangeTypeItemHistoryData", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -171,7 +164,88 @@ func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *
|
|
|
|
|
|
func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error) {
|
|
func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error) {
|
|
out := new(ItemHistoryDataForChartResp)
|
|
out := new(ItemHistoryDataForChartResp)
|
|
- err := c.cc.Invoke(ctx, Organization_ItemHistoryDataForChart_FullMethodName, in, out, opts...)
|
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/pb.Organization/ItemHistoryDataForChart", 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, "/pb.Organization/FindAppList", 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, "/pb.Organization/GetAppInfo", 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, "/pb.Organization/CreateAppInfo", 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, "/pb.Organization/RemoveAppInfo", 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, "/pb.Organization/DisableAppInfo", 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, "/pb.Organization/EnableAppInfo", 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, "/pb.Organization/ResetAppSecret", 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, "/pb.Organization/ExpireAppSecret", 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, "/pb.Organization/ResetAppProject", in, out, opts...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
@@ -195,6 +269,15 @@ type OrganizationServer interface {
|
|
ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
|
|
ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
|
|
ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
|
|
ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
|
|
ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, 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)
|
|
mustEmbedUnimplementedOrganizationServer()
|
|
mustEmbedUnimplementedOrganizationServer()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -241,6 +324,33 @@ func (UnimplementedOrganizationServer) ChangeTypeItemHistoryData(context.Context
|
|
func (UnimplementedOrganizationServer) ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error) {
|
|
func (UnimplementedOrganizationServer) ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataForChart not implemented")
|
|
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) mustEmbedUnimplementedOrganizationServer() {}
|
|
func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {}
|
|
|
|
|
|
// UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service.
|
|
// UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -264,7 +374,7 @@ func _Organization_GetWorkingUfByCode_Handler(srv interface{}, ctx context.Conte
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_GetWorkingUfByCode_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/GetWorkingUfByCode",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).GetWorkingUfByCode(ctx, req.(*DcWorkingReq))
|
|
return srv.(OrganizationServer).GetWorkingUfByCode(ctx, req.(*DcWorkingReq))
|
|
@@ -282,7 +392,7 @@ func _Organization_FindWorkingUfByCycle_Handler(srv interface{}, ctx context.Con
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_FindWorkingUfByCycle_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/FindWorkingUfByCycle",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, req.(*FindWorkingUfByCycleReq))
|
|
return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, req.(*FindWorkingUfByCycleReq))
|
|
@@ -300,7 +410,7 @@ func _Organization_GetWorkingRoByCode_Handler(srv interface{}, ctx context.Conte
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_GetWorkingRoByCode_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/GetWorkingRoByCode",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).GetWorkingRoByCode(ctx, req.(*DcWorkingReq))
|
|
return srv.(OrganizationServer).GetWorkingRoByCode(ctx, req.(*DcWorkingReq))
|
|
@@ -318,7 +428,7 @@ func _Organization_GetWorkingChestByCode_Handler(srv interface{}, ctx context.Co
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_GetWorkingChestByCode_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/GetWorkingChestByCode",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).GetWorkingChestByCode(ctx, req.(*DcWorkingReq))
|
|
return srv.(OrganizationServer).GetWorkingChestByCode(ctx, req.(*DcWorkingReq))
|
|
@@ -336,7 +446,7 @@ func _Organization_GetWorkingPumpByCode_Handler(srv interface{}, ctx context.Con
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_GetWorkingPumpByCode_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/GetWorkingPumpByCode",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, req.(*DcWorkingReq))
|
|
return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, req.(*DcWorkingReq))
|
|
@@ -354,7 +464,7 @@ func _Organization_GetWorkingValveByCode_Handler(srv interface{}, ctx context.Co
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_GetWorkingValveByCode_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/GetWorkingValveByCode",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).GetWorkingValveByCode(ctx, req.(*DcWorkingReq))
|
|
return srv.(OrganizationServer).GetWorkingValveByCode(ctx, req.(*DcWorkingReq))
|
|
@@ -372,7 +482,7 @@ func _Organization_MultiAddItemHistoryData_Handler(srv interface{}, ctx context.
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_MultiAddItemHistoryData_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/MultiAddItemHistoryData",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, req.(*MultiAddItemHistoryDataReq))
|
|
return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, req.(*MultiAddItemHistoryDataReq))
|
|
@@ -390,7 +500,7 @@ func _Organization_ItemHistoryDataList_Handler(srv interface{}, ctx context.Cont
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ItemHistoryDataList_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ItemHistoryDataList",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ItemHistoryDataList(ctx, req.(*ItemHistoryDataListReq))
|
|
return srv.(OrganizationServer).ItemHistoryDataList(ctx, req.(*ItemHistoryDataListReq))
|
|
@@ -408,7 +518,7 @@ func _Organization_ItemHistoryDataByTime_Handler(srv interface{}, ctx context.Co
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ItemHistoryDataByTime_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ItemHistoryDataByTime",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
@@ -426,7 +536,7 @@ func _Organization_ItemHistoryDataMaxMinByTime_Handler(srv interface{}, ctx cont
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ItemHistoryDataMaxMinByTime_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ItemHistoryDataMaxMinByTime",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
@@ -444,7 +554,7 @@ func _Organization_ItemHistoryDataFirstLastByTime_Handler(srv interface{}, ctx c
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ItemHistoryDataFirstLastByTime_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ItemHistoryDataFirstLastByTime",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
@@ -462,7 +572,7 @@ func _Organization_ChangeTypeItemHistoryData_Handler(srv interface{}, ctx contex
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ChangeTypeItemHistoryData_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ChangeTypeItemHistoryData",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
|
|
@@ -480,7 +590,7 @@ func _Organization_ItemHistoryDataForChart_Handler(srv interface{}, ctx context.
|
|
}
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
Server: srv,
|
|
- FullMethod: Organization_ItemHistoryDataForChart_FullMethodName,
|
|
|
|
|
|
+ FullMethod: "/pb.Organization/ItemHistoryDataForChart",
|
|
}
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, req.(*ItemHistoryDataForChartReq))
|
|
return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, req.(*ItemHistoryDataForChartReq))
|
|
@@ -488,6 +598,168 @@ func _Organization_ItemHistoryDataForChart_Handler(srv interface{}, ctx context.
|
|
return interceptor(ctx, in, info, handler)
|
|
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: "/pb.Organization/FindAppList",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/GetAppInfo",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/CreateAppInfo",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/RemoveAppInfo",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/DisableAppInfo",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/EnableAppInfo",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/ResetAppSecret",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/ExpireAppSecret",
|
|
|
|
+ }
|
|
|
|
+ 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: "/pb.Organization/ResetAppProject",
|
|
|
|
+ }
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
+ return srv.(OrganizationServer).ResetAppProject(ctx, req.(*ResetAppProjectReq))
|
|
|
|
+ }
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
+}
|
|
|
|
+
|
|
// Organization_ServiceDesc is the grpc.ServiceDesc for Organization service.
|
|
// Organization_ServiceDesc is the grpc.ServiceDesc for Organization service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -547,6 +819,42 @@ var Organization_ServiceDesc = grpc.ServiceDesc{
|
|
MethodName: "ItemHistoryDataForChart",
|
|
MethodName: "ItemHistoryDataForChart",
|
|
Handler: _Organization_ItemHistoryDataForChart_Handler,
|
|
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,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "organization.proto",
|
|
Metadata: "organization.proto",
|