fix: 完善学习进度同步与拼图收集流程
统一阶段拼图配置和进度上报,增加同步写入协调与失败重试,优化收集确认及同步反馈,并展示菜单探索进度。补充相关回归测试与字体素材。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
6491b0c918
commit
9ab67b1bd3
63 files changed
+2141
-360
No files matched your search
Vendored
+23
-15
@@ -6,6 +6,22 @@ declare module '@/lib/utils/api-common' {
|
||||
backend?: StorageBackend
|
||||
}
|
||||
|
||||
export interface WriteOptions extends StorageOptions {
|
||||
critical?: boolean
|
||||
bypassQueue?: boolean
|
||||
deadlineMs?: number
|
||||
silent?: boolean
|
||||
}
|
||||
|
||||
export interface WriteResult {
|
||||
success: boolean
|
||||
skipped?: boolean
|
||||
superseded?: boolean
|
||||
code?: number
|
||||
message?: string
|
||||
attempts?: number
|
||||
}
|
||||
|
||||
export interface UserDefineFetchResult {
|
||||
status: UserDefineFetchStatus
|
||||
content: string
|
||||
@@ -17,8 +33,8 @@ declare module '@/lib/utils/api-common' {
|
||||
lessonId: string | number,
|
||||
key: string | number,
|
||||
value: string,
|
||||
options?: StorageOptions
|
||||
): void
|
||||
options?: WriteOptions
|
||||
): Promise<WriteResult>
|
||||
|
||||
export function getUserDefineResult(
|
||||
lessonId: string | number,
|
||||
@@ -26,18 +42,10 @@ declare module '@/lib/utils/api-common' {
|
||||
options?: StorageOptions
|
||||
): Promise<UserDefineFetchResult>
|
||||
|
||||
export function parseUserDefineContent<T>(content: string): T
|
||||
export function parseUserDefineContent<T>(content: string, options?: StorageOptions): T
|
||||
|
||||
export function getUserDefine(
|
||||
lessonId: string | number,
|
||||
key: string | number,
|
||||
options?: StorageOptions
|
||||
): Promise<string>
|
||||
|
||||
export function getUsersDefine(
|
||||
lessonId: string | number,
|
||||
key: string | number
|
||||
): Promise<string | { content?: string }[]>
|
||||
|
||||
export function setCourseTimeProgress(order: number): Promise<boolean>
|
||||
export function setCourseTimeProgress(
|
||||
order: number,
|
||||
options?: Pick<WriteOptions, 'bypassQueue' | 'deadlineMs'>
|
||||
): Promise<WriteResult>
|
||||
}
|
||||
Reference in new issue
Block a user