update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-07-04 11:06:41 -06:00
parent bda28b8400
commit ff5daf8afe
3 changed files with 72 additions and 30 deletions

View File

@@ -163,6 +163,14 @@ export function getSQLTestcaseScripts(problemId: number) {
)
}
// AI 根据标准答案生成一个 SQL 测试点初始化脚本
export function generateSQLTestcase(data: {
ref_sql: string
mode: "query" | "modify"
}) {
return http.post<{ sql: string }>("admin/sql_test_case_ai_gen", data)
}
export function createProblem(problem: BlankProblem) {
return http.post("admin/problem", problem)
}