update:1.修复一对一模式修改大纲名称没有同步更新章节名称 2.修复一对一模式全新生成大纲,没有关联删除对应章节问题 3.优化根据分析建议重新生成章节内容时引用默认写作风格 5.将写作风格调整至用户级,在一个项目中添加全局可见(需要更新数据库)

This commit is contained in:
xiamuceer
2025-11-28 20:23:42 +08:00
parent deb6cc37a4
commit 3be62e1482
12 changed files with 302 additions and 108 deletions
+2 -4
View File
@@ -406,7 +406,7 @@ export interface ApiResponse<T> {
// 写作风格类型定义
export interface WritingStyle {
id: number;
project_id: string;
user_id: string | null; // NULL 表示全局预设风格
name: string;
style_type: 'preset' | 'custom';
preset_id?: string;
@@ -419,13 +419,11 @@ export interface WritingStyle {
}
export interface WritingStyleCreate {
project_id: string;
name: string;
style_type: 'preset' | 'custom';
style_type?: 'preset' | 'custom';
preset_id?: string;
description?: string;
prompt_content: string;
is_default?: boolean;
}
export interface WritingStyleUpdate {