精简 Problem 模型:前端移除 rule_type / io_mode / total_score
配合后端删除这三列: - Problem 类型与 admin 出题页去掉 rule_type、io_mode 字段 - 出题提交 payload 不再携带这些字段 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -145,17 +145,10 @@ export interface Problem {
|
||||
last_update_time: null
|
||||
time_limit: number
|
||||
memory_limit: number
|
||||
io_mode: {
|
||||
input: string
|
||||
output: string
|
||||
io_mode: string
|
||||
}
|
||||
rule_type: string
|
||||
difficulty: "Low" | "Mid" | "High"
|
||||
source: string
|
||||
prompt: string
|
||||
answers: { language: LANGUAGE; code: string }[]
|
||||
total_score: number
|
||||
submission_number: number
|
||||
accepted_number: number
|
||||
statistic_info: { [key: string]: number }
|
||||
@@ -207,7 +200,6 @@ type ExcludeKeys =
|
||||
| "statistic_info"
|
||||
| "accepted_number"
|
||||
| "submission_number"
|
||||
| "total_score"
|
||||
|
||||
export type BlankProblem = Omit<Problem, ExcludeKeys> &
|
||||
AlterProblem & { id?: number }
|
||||
|
||||
Reference in New Issue
Block a user