Files
mp-vue/src/api/hjm/hjmQuestions/model/index.ts
赵忠林 82ac209505 style(api): 统一代码风格并修复语法问题
- 统一import语句的空格格式
- 修复分号缺失问题
- 调整函数参数换行格式以符合规范
- 删除多余空行保持代码整洁
- 修复字符串拼接的换行格式问题
2026-01-21 00:26:14 +08:00

56 lines
1.1 KiB
TypeScript

import type { PageParam } from '@/api';
import { HjmChoices } from '@/api/hjm/hjmChoices/model';
/**
* 题目
*/
export interface HjmQuestions {
// 自增ID
id?: number;
// 课程ID
courseId?: number;
// 课程名称
courseName?: string;
// 类型 0choice 1fill 2essay
type?: number;
// 题目
question?: string;
// 正确答案
correctAnswer?: string;
// 难度,'easy', 'medium', 'hard'
difficulty?: number;
// 用户ID
userId?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
// 备注
comments?: string;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
// 选项
choicesA?: string;
choicesB?: string;
choicesC?: string;
choicesD?: string;
choices?: number;
choicesList?: HjmChoices[];
}
/**
* 题目搜索条件
*/
export interface HjmQuestionsParam extends PageParam {
id?: number;
courseId?: number;
type?: number;
keywords?: string;
}