feat(migrations): Harden task audit tracking and optimize article templates
- Added migration to harden task audit tracking by modifying audit_logs and related tables. - Introduced operator_id to several tables for better tracking of actions. - Updated article_templates with new prompt templates for various article types, enhancing content generation. - Created prompt_rules and schedule_tasks tables to manage content generation rules and scheduling. - Added foreign key constraints to articles for better data integrity.
This commit is contained in:
@@ -13,6 +13,21 @@ const errorMessageMap: Record<string, string> = {
|
||||
query_failed: "数据读取失败",
|
||||
quota_insufficient: "生成额度不足",
|
||||
llm_unavailable: "生成服务不可用",
|
||||
analyze_context_required: "请先填写品牌或模板上下文信息",
|
||||
title_context_required: "请先确认品牌、关键词或竞品信息",
|
||||
outline_context_required: "请先确认标题和文章结构后再生成大纲",
|
||||
analyze_queue_unavailable: "品牌分析任务较多,请稍后重试",
|
||||
title_queue_unavailable: "标题生成任务较多,请稍后重试",
|
||||
outline_queue_unavailable: "大纲生成任务较多,请稍后重试",
|
||||
analyze_task_not_found: "品牌分析任务不存在或已失效",
|
||||
title_task_not_found: "标题生成任务不存在或已失效",
|
||||
outline_task_not_found: "文章大纲任务不存在或已失效",
|
||||
article_generating: "文章仍在生成中",
|
||||
article_not_editable: "只有已完成文章才可编辑",
|
||||
draft_not_editable: "只有草稿或生成失败的文章才可继续在向导中编辑",
|
||||
article_title_required: "请输入文章标题",
|
||||
invalid_payload: "请求参数不合法",
|
||||
update_failed: "保存文章失败",
|
||||
network_error: "网络连接失败,请稍后重试",
|
||||
unknown_error: "发生未知错误",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user