// Code generated by goctl. DO NOT EDIT. // goctl 1.7.6 // Source: admin_service.proto package server import ( "context" "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/admin_service" "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/internal/logic" "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/internal/svc" ) type AdminServiceServer struct { svcCtx *svc.ServiceContext admin_service.UnimplementedAdminServiceServer } func NewAdminServiceServer(svcCtx *svc.ServiceContext) *AdminServiceServer { return &AdminServiceServer{ svcCtx: svcCtx, } } func (s *AdminServiceServer) Ping(ctx context.Context, in *admin_service.Request) (*admin_service.Response, error) { l := logic.NewPingLogic(ctx, s.svcCtx) return l.Ping(in) } // 获取app列表 func (s *AdminServiceServer) GetAppList(ctx context.Context, in *admin_service.GetAppListRequest) (*admin_service.GetAppListResponse, error) { l := logic.NewGetAppListLogic(ctx, s.svcCtx) return l.GetAppList(in) } // 修改app列表 func (s *AdminServiceServer) UpdateOne(ctx context.Context, in *admin_service.AppInfo) (*admin_service.CommonResponse, error) { l := logic.NewUpdateOneLogic(ctx, s.svcCtx) return l.UpdateOne(in) } // 删除app func (s *AdminServiceServer) DeleteApp(ctx context.Context, in *admin_service.DeleteAppRequest) (*admin_service.CommonResponse, error) { l := logic.NewDeleteAppLogic(ctx, s.svcCtx) return l.DeleteApp(in) } // 添加app func (s *AdminServiceServer) AddApp(ctx context.Context, in *admin_service.AddAppRequest) (*admin_service.AddAppResponse, error) { l := logic.NewAddAppLogic(ctx, s.svcCtx) return l.AddApp(in) }