diff --git a/apps/server/controllers/deployment/types.ts b/apps/server/controllers/deployment/types.ts deleted file mode 100644 index e69de29..0000000 diff --git a/apps/server/controllers/pipeline/dto.ts b/apps/server/controllers/pipeline/dto.ts index bbe0637..cb88712 100644 --- a/apps/server/controllers/pipeline/dto.ts +++ b/apps/server/controllers/pipeline/dto.ts @@ -32,3 +32,9 @@ export const pipelineIdSchema = z.object({ export const listPipelinesQuerySchema = z.object({ projectId: z.coerce.number().int().positive({ message: '项目ID必须是正整数' }).optional(), }).optional(); + +// 类型 +export type CreatePipelineInput = z.infer; +export type UpdatePipelineInput = z.infer; +export type PipelineIdParams = z.infer; +export type ListPipelinesQuery = z.infer; diff --git a/apps/server/controllers/pipeline/types.ts b/apps/server/controllers/pipeline/types.ts deleted file mode 100644 index 331e653..0000000 --- a/apps/server/controllers/pipeline/types.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { z } from 'zod'; -import type { - createPipelineSchema, - updatePipelineSchema, - pipelineIdSchema, - listPipelinesQuerySchema -} from './schema.js'; - -// TypeScript 类型 -export type CreatePipelineInput = z.infer; -export type UpdatePipelineInput = z.infer; -export type PipelineIdParams = z.infer; -export type ListPipelinesQuery = z.infer;