Compare commits

..

No commits in common. "f2f39fa8ba77c6dd454f2adc82e055db910424da" and "33efcffcaa0a163374e7f44fe965c062901b45bc" have entirely different histories.

4 changed files with 2 additions and 52 deletions

View File

@ -1,23 +0,0 @@
import { N8nVideoGenerateTemplate } from '../n8nTemplate';
// cos真人模板
export class CosplayRealPersonTemplate extends N8nVideoGenerateTemplate {
readonly code = 'cosplay_real_person_v1';
readonly name = 'cos真人';
readonly description = '生成cosplay这张插图的真人照片背景设置在Comiket并生成cosplay人物做经典动作的视频';
readonly creditCost = 25;
readonly version = '1.0.0';
readonly input = 'https://cdn.roasmax.cn/upload/c69a847f8e8740f594f731ef502c4054.png'; // 原始插图示例
readonly output = 'https://file.302.ai/gpt/imgs/20250903/376c2ee8e6bc06598b34cc43ce649aae.jpg'; // 输出图片示例
readonly tags = ['cosplay', '真人', 'Comiket', '动漫', '二次元', '视频生成'];
// N8n模板特定属性 - 图片生成
readonly imageModel = 'gemini-2.5-flash-image'; // 根据要求使用 gemini-2.5-flash-image
readonly imagePrompt = '生成一张cosplay这张插图的照片背景设置在Comiket插图主体大一些';
// N8n模板特定属性 - 视频生成
readonly videoModel = '302/MiniMax-Hailuo-02';
readonly videoPrompt = '图片里的cosplay人物动起来做出这个cosplay人物的经典动作';
readonly duration = 6; // 6秒视频
readonly aspectRatio = '9:16'; // 竖屏比例
}

View File

@ -1,23 +0,0 @@
import { N8nVideoGenerateTemplate } from '../n8nTemplate';
// 宠物手办模板
export class PetFigurineTemplate extends N8nVideoGenerateTemplate {
readonly code = 'pet_figurine_v1';
readonly name = '宠物手办';
readonly description = '将宠物插图制作成1/7比例的商业化手办展示在电脑桌上并生成手办把玩视频';
readonly creditCost = 30;
readonly version = '1.0.0';
readonly input = 'https://cdn.roasmax.cn/upload/7cc18d70e9ba48bc8cadff7d3cdf62e1.png'; // 原始宠物插图示例
readonly output = 'https://cdn.roasmax.cn/upload/02f5c251162043f28e9da8d984546f40.png'; // 输出手办图片示例
readonly tags = ['宠物', '手办', '模型', '收藏', 'BANDAI', 'ZBrush', '视频生成'];
// N8n模板特定属性 - 图片生成
readonly imageModel = 'gemini-2.5-flash-image'; // nano banana 模型
readonly imagePrompt = 'Create a 1/7 scale commercialized figure of the animal in the illustration, in a realistic style and environment. Place the figure on a computer desk, using a circular transparent acrylic base without any text. On the Macbook Pro screen, display the ZBrush modeling process of the figure in line mode. Next to the computer screen, place a BANDAI-style toy packaging box printed with the original artwork.';
// N8n模板特定属性 - 视频生成
readonly videoModel = '302/MiniMax-Hailuo-02';
readonly videoPrompt = '一双手拿起手办,在手里展示把玩';
readonly duration = 6; // 6秒视频
readonly aspectRatio = '9:16'; // 竖屏比例
}

View File

@ -1,4 +1,2 @@
export * from './PhotoRestoreTemplate'; export * from './PhotoRestoreTemplate';
export * from './close-eyes.template'; export * from './close-eyes.template';
export * from './CosplayRealPersonTemplate';
export * from './PetFigurineTemplate';

View File

@ -1,6 +1,6 @@
import { Injectable, OnModuleInit, Logger } from '@nestjs/common'; import { Injectable, OnModuleInit, Logger } from '@nestjs/common';
import { TemplateManager, Template } from './types'; import { TemplateManager, Template } from './types';
import { CloseEyesTemplate, PhotoRestoreTemplate, CosplayRealPersonTemplate, PetFigurineTemplate } from './n8nTemplates'; import { CloseEyesTemplate, PhotoRestoreTemplate } from './n8nTemplates';
@Injectable() @Injectable()
export class TemplateService implements OnModuleInit { export class TemplateService implements OnModuleInit {
@ -72,8 +72,6 @@ export class TemplateService implements OnModuleInit {
this.templateManager.registerTemplates([ this.templateManager.registerTemplates([
new PhotoRestoreTemplate(), new PhotoRestoreTemplate(),
new CloseEyesTemplate(), new CloseEyesTemplate(),
new CosplayRealPersonTemplate(),
new PetFigurineTemplate(),
]); ]);
} catch (error) { } catch (error) {
this.logger.error('模板初始化失败:', error); this.logger.error('模板初始化失败:', error);