chore(阶段3): 删除阶段 1 的临时验证物

GET /api/dev/problems、dev-problems.vue、对应路由项,以及只服务于它的
problemSummarySchema。阶段 1 用来验证「能从真实库读出一道题」,已完成使命。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-07 06:48:20 -06:00
parent 6c18c57e7a
commit 44f6f27841
4 changed files with 0 additions and 64 deletions

View File

@@ -2,18 +2,6 @@ import { z } from "zod"
import { paginatedSchema, sampleUserSchema } from "./common"
/** 题目列表项。字段取自 problem 表,只含列表页需要的列。 */
export const problemSummarySchema = z.object({
id: z.number().int(),
_id: z.string(), // 展示用编号,与自增 id 不同
title: z.string(),
difficulty: z.string(),
submissionNumber: z.number().int(),
acceptedNumber: z.number().int(),
})
export type ProblemSummary = z.infer<typeof problemSummarySchema>
export const problemDetailSchema = z.object({
id: z.number().int(),
_id: z.string(),