feat(admin): 新增题库、排行榜、实时结果和模板管理功能

- 添加题库管理页面及相关组件
- 实现排行榜管理功能,包括列表和详情页
- 新增实时结果展示页面
- 添加模板制作和管理功能
- 完善路由配置和国际化支持
- 新增阿里云OSS文件上传服务
- 添加多种工具函数和类型定义
- 优化表格和表单组件
- 调整布局和样式细节
This commit is contained in:
2026-01-22 17:55:45 +08:00
parent 697d606611
commit f1dacf7c66
25 changed files with 1001 additions and 945 deletions

View File

@ -8,20 +8,20 @@ declare namespace Api {
/** common params of paginating */
interface PaginatingCommonParams {
/** current page number */
current: number;
current: number
/** page size */
size: number;
size: number
/** total count */
total: number;
total: number
}
/** common params of paginating query list data */
interface PaginatingQueryRecord<T = any> extends PaginatingCommonParams {
records: T[];
records: T[]
}
/** common search params of table */
type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'current' | 'size'>;
type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'current' | 'size'>
/**
* enable status
@ -29,22 +29,22 @@ declare namespace Api {
* - "1": enabled
* - "2": disabled
*/
type EnableStatus = '1' | '2';
type EnableStatus = '1' | '2'
/** common record */
type CommonRecord<T = any> = {
/** record id */
id: number;
id: number
/** record creator */
createBy: string;
createBy: string
/** record create time */
createTime: string;
createTime: string
/** record updater */
updateBy: string;
updateBy: string
/** record update time */
updateTime: string;
updateTime: string
/** record status */
status: EnableStatus | null;
} & T;
status: EnableStatus | null
} & T
}
}