feat: P3b 会话重命名 (PATCH + 双击编辑)

This commit is contained in:
yuzhiran-dev
2026-05-18 12:08:32 +08:00
parent 4de042abcd
commit ed003d0ef0
4 changed files with 43 additions and 4 deletions
@@ -46,4 +46,9 @@ export class SandboxController {
async share(@Req() req: any, @Param('id', ParseIntPipe) id: number) {
return this.sandboxService.generateShareToken(req.user.userId, id);
}
@Patch('sessions/:id/rename')
async rename(@Req() req: any, @Param('id', ParseIntPipe) id: number, @Body() body: { title: string }) {
return this.sandboxService.renameSession(req.user.userId, id, body.title);
}
}