generated from fahricansecer/boilerplate-be
@@ -156,11 +156,12 @@ export class ProjectsController {
|
||||
@ApiResponse({ status: 202, description: 'Video üretimi kuyruğa eklendi' })
|
||||
async approveAndStartGeneration(
|
||||
@Param('id', ParseUUIDPipe) id: string,
|
||||
@Body() body: { ttsProvider?: string; visualEffect?: string },
|
||||
@Req() req: any,
|
||||
) {
|
||||
const userId = req.user?.id || req.user?.sub;
|
||||
this.logger.log(`Proje onaylanıyor ve kuyruğa gönderiliyor: ${id}`);
|
||||
return this.projectsService.approveAndQueueGeneration(userId, id);
|
||||
return this.projectsService.approveAndQueueGeneration(userId, id, body?.ttsProvider, body?.visualEffect);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -373,6 +374,25 @@ export class ProjectsController {
|
||||
return this.projectsService.generateSeoTitles(userId, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Proje için kapsamlı SEO ve Sosyal Medya içeriklerini yeniden üretir (Gemini AI).
|
||||
*/
|
||||
@Post(':id/generate-social-content')
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@ApiOperation({ summary: 'AI ile SEO ve Sosyal Medya içeriklerini üret' })
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: 'İçerikler başarıyla üretildi',
|
||||
})
|
||||
async generateSocialContent(
|
||||
@Param('id', ParseUUIDPipe) id: string,
|
||||
@Req() req: any,
|
||||
) {
|
||||
const userId = req.user?.id || req.user?.sub;
|
||||
this.logger.log(`SEO ve Sosyal Medya üretim isteği: ${id}`);
|
||||
return this.projectsService.generateSocialAndSeoContent(userId, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Alternatif SEO başlıklarından birini seçerek projenin ana başlığını günceller.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user