feat: 作业纸

This commit is contained in:
R524809
2026-10-23 16:52:47 +08:00
parent 83a90407b0
commit c090675255
14 changed files with 532 additions and 3 deletions
+17
View File
@@ -107,8 +107,25 @@ export interface WorksheetQuery {
isNew?: boolean;
}
/** 仅下发已注册纸张绘制器的公开参数,不透传数据库配置。 */
export type PaperSheetRendering = {
rendererKey: 'paper-sheet';
paperType:
| 'tian'
| 'mi'
| 'square'
| 'four-line'
| 'letter'
| 'horizontal'
| 'vertical'
| 'dictation-hanzi'
| 'dictation-pinyin'
| 'homework-log';
};
/** 公开题型白名单;64 位展示计数使用十进制字符串,避免 JavaScript 精度丢失。 */
export interface PublicWorksheet {
rendering?: PaperSheetRendering;
id: string;
title: string;
subtitle: string;