| 123456789101112131415161718192021222324252627282930313233343536 |
- import { PipelineRoute } from '../pipelines/pipeline-registry';
- export type TemplateScope = 'system' | 'user';
- export type TemplateCategory = '口播' | '产品种草' | '知识科普' | '影视感' | '带货' | '其他';
- export interface GenerationTemplatePreview {
- coverUrl?: string;
- samplePrompt?: string;
- sampleResultUrl?: string;
- }
- export interface GenerationTemplate {
- id: string;
- userId?: string;
- scope: TemplateScope;
- pipelineId: PipelineRoute;
- name: string;
- description?: string;
- category: TemplateCategory;
- tags: string[];
- config: Record<string, any>;
- preview?: GenerationTemplatePreview;
- version: number;
- usageCount: number;
- createdAt: string;
- updatedAt: string;
- }
- export type GenerationTemplateInput = Omit<
- GenerationTemplate,
- 'id' | 'userId' | 'scope' | 'version' | 'usageCount' | 'createdAt' | 'updatedAt'
- > & {
- id?: string;
- version?: number;
- };
|