feat(template): 增强答题卡编辑器功能并优化类型定义

- 新增模板详情编辑功能,支持从后端加载并回填数据
- 在画布中增加网格、标尺和坐标显示辅助工具
- 优化模板列表操作按钮布局,新增打印功能
- 扩展响应类型定义,增加 success 字段和 TemplateDetail 接口
- 添加 ESLint 配置排除 Markdown 文件,并完善事件总线类型
- 新增请求工具使用文档,说明错误处理机制
This commit is contained in:
2026-01-29 11:55:18 +08:00
parent ba38accdb9
commit 82b1dd7ebe
11 changed files with 654 additions and 106 deletions

View File

@ -32,6 +32,24 @@ declare namespace Api {
tempContent: string
}
/** template detail */
interface TemplateDetail {
/** template id */
ID: number
/** template name */
Name: string
/** width */
Width: number
/** height */
Height: number
/** background url */
BackGroundUrl: string
/** template content */
TempContent: string
/** competition id */
CompetitionId?: number
}
/** template search params */
interface TemplateSearchParams extends PaginatingCommonParams {
/** competition activity name */

View File

@ -633,11 +633,13 @@ declare namespace App {
/** The backend service response data */
interface Response<T = unknown> {
/** The backend service response code */
code: string
code: number
/** The backend service response message */
msg: string
/** The backend service response data */
data: T
/** The backend service response success status */
success?: boolean
}
/** The demo backend service response data */