Skip to content

Commit bff82d5

Browse files
author
piexlMax(奇淼
committed
feat(automation): 增加可以自动生成CURD和续写方法的MCP
1 parent 6016e96 commit bff82d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/mcp/gva_auto_generate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@ func (t *AutomationModuleAnalyzer) buildDirectoryStructure(plan *ExecutionPlan)
469469
webBasePath := fmt.Sprintf("%s/%s", rootPath, webPath)
470470

471471
// Vue 页面路径
472-
paths["vue_page"] = fmt.Sprintf("%s/src/view/%s", webBasePath, packageName)
472+
paths["vue_page"] = fmt.Sprintf("%s/view/%s", webBasePath, packageName)
473473

474474
// API 路径
475-
paths["vue_api"] = fmt.Sprintf("%s/src/api/%s", webBasePath, packageName)
475+
paths["vue_api"] = fmt.Sprintf("%s/api/%s", webBasePath, packageName)
476476
}
477477

478478
// 添加模块信息
@@ -636,7 +636,7 @@ func (t *AutomationModuleAnalyzer) executeCreation(ctx context.Context, plan *Ex
636636
result.Paths = t.buildDirectoryStructure(plan)
637637

638638
if !plan.NeedCreatedModules {
639-
result.success = true
639+
result.Success = true
640640
result.Message += "已列出当前功能所涉及的目录结构信息; 请在paths中查看; 并且在对应指定文件中实现相关的业务逻辑; "
641641
return result
642642
}

0 commit comments

Comments
 (0)