首次提交:初始化项目代码

This commit is contained in:
sunct
2026-07-31 14:44:48 +08:00
commit a4fe393571
119 changed files with 29105 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package router
import "github.com/gin-gonic/gin"
// setupAIAPIRoutes 配置 AI 相关 API 路由
func (r *Router) setupAIAPIRoutes(api *gin.RouterGroup) {
aiGroup := api.Group("/ai")
{
aiGroup.POST("/polish", r.aiHandler.PolishText)
aiGroup.GET("/provider", r.aiHandler.GetProviderInfo)
agentGroup := aiGroup.Group("/agent")
{
agentGroup.POST("/polish", r.aiHandler.AgentPolish)
agentGroup.POST("/analyze", r.aiHandler.AgentAnalyze)
agentGroup.POST("/generate-questions", r.aiHandler.GenerateQuestions)
agentGroup.POST("/evaluate-answers", r.aiHandler.EvaluateAnswers)
agentGroup.POST("/submit-answers", r.aiHandler.SubmitAnswers)
}
}
}