feat(admin): 更新题库管理和环境配置
- 禁用强制登录以便本地开发 - 更新开发环境API基础URL为本地服务 - 在代理配置中添加secure: false以支持HTTPS接口 - 修复请求响应中字符串类型数据的JSON解析问题 - 新增题目类型相关常量定义和类型声明 - 扩展transformRecordToOption函数支持数字键值 - 更新题库相关API接口和类型定义 - 在竞赛配置中添加题目分数字段 - 重构题库管理界面,实现分类和题目的完整CRUD操作 - 删除未使用的模板管理组件
This commit is contained in:
40
apps/admin/src/typings/api/question.d.ts
vendored
40
apps/admin/src/typings/api/question.d.ts
vendored
@ -7,29 +7,59 @@ declare namespace Api {
|
||||
namespace Question {
|
||||
/** common params of paginating */
|
||||
interface PaginatingCommonParams {
|
||||
/** current page number */
|
||||
current: number
|
||||
/** pageIndex page number */
|
||||
pageIndex: number
|
||||
/** page size */
|
||||
size: number
|
||||
pageSizes: number
|
||||
/** total count */
|
||||
total: number
|
||||
}
|
||||
|
||||
/** common params of paginating query list data */
|
||||
interface PaginatingQueryRecord<T = any> extends PaginatingCommonParams {
|
||||
records: T[]
|
||||
data: T[]
|
||||
}
|
||||
|
||||
/** get question library list all params */
|
||||
interface GetQuestionLibraryListAllParams {
|
||||
/** question id */
|
||||
questionId: number
|
||||
/** pageIndex page number */
|
||||
pageIndex: number
|
||||
/** page size */
|
||||
pageSizes: number
|
||||
/** search keyword */
|
||||
keyWords?: string
|
||||
}
|
||||
|
||||
/** add params */
|
||||
interface AddParams {
|
||||
/** question id */
|
||||
id: string
|
||||
id: number
|
||||
/** question name */
|
||||
name: string
|
||||
/** question content */
|
||||
questionContent: string
|
||||
}
|
||||
|
||||
/** add question library params */
|
||||
interface AddQuestionLibraryParams {
|
||||
/** question library id */
|
||||
id: number
|
||||
/** question library name */
|
||||
name: string
|
||||
/** question library content */
|
||||
answer: string
|
||||
/** question id */
|
||||
questionId: number
|
||||
/** question library image url */
|
||||
imageUrl: string
|
||||
/** question library type */
|
||||
type: QuestionScoreType
|
||||
/** is priority 0: no 1: yes */
|
||||
IsGood: number
|
||||
}
|
||||
|
||||
/** common search params of table */
|
||||
type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'current' | 'size'>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user