feat: 新增党政公文类写作范式
- 添加'民主生活会对照检查'范式 - 添加'政府工作报告'范式 - 更新范式检测逻辑支持新类型 - 同步更新MainContent组件范式定义
This commit is contained in:
@@ -158,6 +158,26 @@ const paradigms = [
|
||||
tagClass: 'bg-orange-900/30 text-orange-300',
|
||||
prompt: '请按照学术论文的范式写作,包含:1) 摘要 2) 引言 3) 文献综述 4) 研究方法论 5) 结果与讨论 6) 结论',
|
||||
constraints: ['引用权威来源', '严禁被动语态']
|
||||
},
|
||||
{
|
||||
type: 'party-review',
|
||||
name: '民主生活会对照检查',
|
||||
icon: '🏛️',
|
||||
description: '适用于党政机关民主生活会个人对照检查材料',
|
||||
tags: ['开篇引言', '对照查摆', '根源剖析', '整改措施', '表态'],
|
||||
tagClass: 'bg-red-900/30 text-red-300',
|
||||
prompt: '请按照民主生活会对照检查材料的范式写作,包含:1) 开篇说明会议主题和学习依据 2) 对照查摆存在的主要问题(按要求逐条分析) 3) 问题产生的根源剖析 4) 下一步整改措施 5) 结尾总结表态。语言要规范使用政治术语,体现自我批评精神,问题剖析要深入,整改措施要具体可行。',
|
||||
constraints: ['总分总结构', '引用权威来源']
|
||||
},
|
||||
{
|
||||
type: 'gov-report',
|
||||
name: '政府工作报告',
|
||||
icon: '📋',
|
||||
description: '适用于政府工作总结、述职报告',
|
||||
tags: ['工作回顾', '成绩总结', '问题分析', '下步计划'],
|
||||
tagClass: 'bg-cyan-900/30 text-cyan-300',
|
||||
prompt: '请按照政府工作报告的范式写作,包含:1) 过去工作回顾 2) 主要成绩和亮点 3) 存在问题和不足 4) 下一步工作计划和目标。语言要严谨规范,数据要准确,措施要具体。',
|
||||
constraints: ['Markdown格式', '数据支撑', '总分总结构']
|
||||
}
|
||||
]
|
||||
|
||||
@@ -226,9 +246,13 @@ const analyzeArticle = async () => {
|
||||
const detectParadigm = (analysis) => {
|
||||
const text = analysis.toLowerCase()
|
||||
|
||||
if (text.includes('技术') || text.includes('代码') || text.includes('问题')) {
|
||||
if (text.includes('民主生活会') || text.includes('对照检查') || text.includes('整改') || text.includes('党性')) {
|
||||
return paradigms[4] // 民主生活会对照检查
|
||||
} else if (text.includes('政府') || text.includes('工作报告') || text.includes('述职')) {
|
||||
return paradigms[5] // 政府工作报告
|
||||
} else if (text.includes('技术') || text.includes('代码') || text.includes('编程')) {
|
||||
return paradigms[0] // 技术博客
|
||||
} else if (text.includes('商业') || text.includes('市场') || text.includes('数据')) {
|
||||
} else if (text.includes('商业') || text.includes('市场') || text.includes('数据分析')) {
|
||||
return paradigms[1] // 商业分析
|
||||
} else if (text.includes('产品') || text.includes('营销') || text.includes('用户')) {
|
||||
return paradigms[2] // 产品文案
|
||||
|
||||
@@ -182,6 +182,24 @@ const paradigms = [
|
||||
tagClass: 'bg-orange-900/30 text-orange-300',
|
||||
prompt: '请按照学术论文的范式写作,包含:1) 摘要 2) 引言 3) 文献综述 4) 研究方法论 5) 结果与讨论 6) 结论',
|
||||
constraints: ['引用权威来源', '严禁被动语态']
|
||||
},
|
||||
{
|
||||
type: 'party-review',
|
||||
name: '民主生活会对照检查',
|
||||
description: '适用于党政机关民主生活会个人对照检查材料',
|
||||
tags: ['开篇引言', '对照查摆', '根源剖析', '整改措施', '表态'],
|
||||
tagClass: 'bg-red-900/30 text-red-300',
|
||||
prompt: '请按照民主生活会对照检查材料的范式写作',
|
||||
constraints: ['总分总结构', '引用权威来源']
|
||||
},
|
||||
{
|
||||
type: 'gov-report',
|
||||
name: '政府工作报告',
|
||||
description: '适用于政府工作总结、述职报告',
|
||||
tags: ['工作回顾', '成绩总结', '问题分析', '下步计划'],
|
||||
tagClass: 'bg-cyan-900/30 text-cyan-300',
|
||||
prompt: '请按照政府工作报告的范式写作',
|
||||
constraints: ['Markdown格式', '数据支撑', '总分总结构']
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user