123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- // Code generated by goctl. DO NOT EDIT.
- // Source: organization.proto
- package server
- import (
- "context"
- "GtDataStore/app/cmd/organization/internal/logic"
- "GtDataStore/app/cmd/organization/internal/svc"
- "GtDataStore/app/cmd/organization/pb"
- )
- type OrganizationServer struct {
- svcCtx *svc.ServiceContext
- pb.UnimplementedOrganizationServer
- }
- func NewOrganizationServer(svcCtx *svc.ServiceContext) *OrganizationServer {
- return &OrganizationServer{
- svcCtx: svcCtx,
- }
- }
- func (s *OrganizationServer) GetWorkingUfByCode(ctx context.Context, in *pb.DcWorkingReq) (*pb.GetWorkingUfByCodeResp, error) {
- l := logic.NewGetWorkingUfByCodeLogic(ctx, s.svcCtx)
- return l.GetWorkingUfByCode(in)
- }
- func (s *OrganizationServer) FindWorkingUfByCycle(ctx context.Context, in *pb.FindWorkingUfByCycleReq) (*pb.FindWorkingUfByCycleResp, error) {
- l := logic.NewFindWorkingUfByCycleLogic(ctx, s.svcCtx)
- return l.FindWorkingUfByCycle(in)
- }
- func (s *OrganizationServer) GetWorkingRoByCode(ctx context.Context, in *pb.DcWorkingReq) (*pb.GetWorkingRoByCodeResp, error) {
- l := logic.NewGetWorkingRoByCodeLogic(ctx, s.svcCtx)
- return l.GetWorkingRoByCode(in)
- }
- func (s *OrganizationServer) GetWorkingChestByCode(ctx context.Context, in *pb.DcWorkingReq) (*pb.GetWorkingChestByCodeResp, error) {
- l := logic.NewGetWorkingChestByCodeLogic(ctx, s.svcCtx)
- return l.GetWorkingChestByCode(in)
- }
- func (s *OrganizationServer) GetWorkingPumpByCode(ctx context.Context, in *pb.DcWorkingReq) (*pb.GetWorkingPumpByCodeResp, error) {
- l := logic.NewGetWorkingPumpByCodeLogic(ctx, s.svcCtx)
- return l.GetWorkingPumpByCode(in)
- }
- func (s *OrganizationServer) GetWorkingValveByCode(ctx context.Context, in *pb.DcWorkingReq) (*pb.GetWorkingValveByCodeResp, error) {
- l := logic.NewGetWorkingValveByCodeLogic(ctx, s.svcCtx)
- return l.GetWorkingValveByCode(in)
- }
- func (s *OrganizationServer) MultiAddItemHistoryData(ctx context.Context, in *pb.MultiAddItemHistoryDataReq) (*pb.MultiAddItemHistoryDataResp, error) {
- l := logic.NewMultiAddItemHistoryDataLogic(ctx, s.svcCtx)
- return l.MultiAddItemHistoryData(in)
- }
- func (s *OrganizationServer) ItemHistoryDataList(ctx context.Context, in *pb.ItemHistoryDataListReq) (*pb.ItemHistoryDataListResp, error) {
- l := logic.NewItemHistoryDataListLogic(ctx, s.svcCtx)
- return l.ItemHistoryDataList(in)
- }
- func (s *OrganizationServer) ItemHistoryDataByTime(ctx context.Context, in *pb.ItemHistoryDataByTimeReq) (*pb.ItemHistoryDataListResp, error) {
- l := logic.NewItemHistoryDataByTimeLogic(ctx, s.svcCtx)
- return l.ItemHistoryDataByTime(in)
- }
- func (s *OrganizationServer) ItemHistoryDataMaxMinByTime(ctx context.Context, in *pb.ItemHistoryDataByTimeReq) (*pb.ItemHistoryDataMaxMinResp, error) {
- l := logic.NewItemHistoryDataMaxMinByTimeLogic(ctx, s.svcCtx)
- return l.ItemHistoryDataMaxMinByTime(in)
- }
- func (s *OrganizationServer) ItemHistoryDataFirstLastByTime(ctx context.Context, in *pb.ItemHistoryDataByTimeReq) (*pb.ItemHistoryDataFirstLastResp, error) {
- l := logic.NewItemHistoryDataFirstLastByTimeLogic(ctx, s.svcCtx)
- return l.ItemHistoryDataFirstLastByTime(in)
- }
- func (s *OrganizationServer) ChangeTypeItemHistoryData(ctx context.Context, in *pb.ItemHistoryDataByTimeReq) (*pb.ChangeTypeItemHistoryDataResp, error) {
- l := logic.NewChangeTypeItemHistoryDataLogic(ctx, s.svcCtx)
- return l.ChangeTypeItemHistoryData(in)
- }
- func (s *OrganizationServer) ItemHistoryDataForChart(ctx context.Context, in *pb.ItemHistoryDataForChartReq) (*pb.ItemHistoryDataForChartResp, error) {
- l := logic.NewItemHistoryDataForChartLogic(ctx, s.svcCtx)
- return l.ItemHistoryDataForChart(in)
- }
- func (s *OrganizationServer) FindAppList(ctx context.Context, in *pb.FindAppListReq) (*pb.FindAppListResp, error) {
- l := logic.NewFindAppListLogic(ctx, s.svcCtx)
- return l.FindAppList(in)
- }
- func (s *OrganizationServer) GetAppInfo(ctx context.Context, in *pb.GetAppInfoReq) (*pb.GetAppInfoResp, error) {
- l := logic.NewGetAppInfoLogic(ctx, s.svcCtx)
- return l.GetAppInfo(in)
- }
- func (s *OrganizationServer) CreateAppInfo(ctx context.Context, in *pb.CreateAppInfoReq) (*pb.CreateAppInfoResp, error) {
- l := logic.NewCreateAppInfoLogic(ctx, s.svcCtx)
- return l.CreateAppInfo(in)
- }
- func (s *OrganizationServer) RemoveAppInfo(ctx context.Context, in *pb.RemoveAppInfoReq) (*pb.RemoveAppInfoResp, error) {
- l := logic.NewRemoveAppInfoLogic(ctx, s.svcCtx)
- return l.RemoveAppInfo(in)
- }
- func (s *OrganizationServer) DisableAppInfo(ctx context.Context, in *pb.DisableAppInfoReq) (*pb.DisableAppInfoResp, error) {
- l := logic.NewDisableAppInfoLogic(ctx, s.svcCtx)
- return l.DisableAppInfo(in)
- }
- func (s *OrganizationServer) EnableAppInfo(ctx context.Context, in *pb.EnableAppInfoReq) (*pb.EnableAppInfoResp, error) {
- l := logic.NewEnableAppInfoLogic(ctx, s.svcCtx)
- return l.EnableAppInfo(in)
- }
- func (s *OrganizationServer) ResetAppSecret(ctx context.Context, in *pb.ResetAppSecretReq) (*pb.ResetAppSecretResp, error) {
- l := logic.NewResetAppSecretLogic(ctx, s.svcCtx)
- return l.ResetAppSecret(in)
- }
- func (s *OrganizationServer) ExpireAppSecret(ctx context.Context, in *pb.ExpireAppSecretReq) (*pb.ExpireAppSecretResp, error) {
- l := logic.NewExpireAppSecretLogic(ctx, s.svcCtx)
- return l.ExpireAppSecret(in)
- }
- func (s *OrganizationServer) ResetAppProject(ctx context.Context, in *pb.ResetAppProjectReq) (*pb.ResetAppProjectResp, error) {
- l := logic.NewResetAppProjectLogic(ctx, s.svcCtx)
- return l.ResetAppProject(in)
- }
|