refactor(rule-groups): 替换创建/编辑页面为 FastAPI v3 接口
变更内容: 1. 补充重命名 getRuleGroup → getRuleGroup_legacy (rule-groups.ts) 2. 更新导入语句,使用新的 FastAPI v3 函数 (rule-groups.new.tsx) 3. 替换所有函数调用: - getRuleGroups → getEvaluationPointGroups (2处) - getRuleGroup → getEvaluationPointGroup - createRuleGroup → createEvaluationPointGroup - updateRuleGroup → updateEvaluationPointGroup 影响范围: - app/api/evaluation_points/rule-groups.ts (补充遗漏的重命名) - app/routes/rule-groups.new.tsx (创建/编辑页面) 功能: - 分组创建、编辑、编码唯一性验证 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -363,11 +363,12 @@ export async function getAllRuleGroups_legacy(token?: string): Promise<{data: Ru
|
||||
|
||||
/**
|
||||
* 获取单个评查点分组详情(包含评查点数量统计)
|
||||
* @deprecated 使用 getEvaluationPointGroup 代替(FastAPI v3)
|
||||
* @param id 分组ID
|
||||
* @param token JWT token (可选)
|
||||
* @returns 分组详情
|
||||
*/
|
||||
export async function getRuleGroup(id: string, token?: string): Promise<{data: RuleGroup; error?: never} | {data?: never; error: string; status?: number}> {
|
||||
export async function getRuleGroup_legacy(id: string, token?: string): Promise<{data: RuleGroup; error?: never} | {data?: never; error: string; status?: number}> {
|
||||
try {
|
||||
if (!id) {
|
||||
return { error: '分组ID不能为空', status: 400 };
|
||||
|
||||
Reference in New Issue
Block a user