- 更新展品图片(鲁迅/毛泽东/孙中山/黄炎培/聂耳/张乐平故居) - 新增点击查看图标、报纸素材 - 优化视频组件、拼图组件、展品组件 - 更新陈云音频资源 - 新增输入验证文档和工具函数 - 组件布局和动画优化 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
declare module '@/lib/utils/api-common' {
|
|
export type UserDefineFetchStatus = 'success' | 'empty' | 'unauthenticated' | 'error'
|
|
export type StorageBackend = 'auto' | 'yiban' | 'session'
|
|
|
|
export interface StorageOptions {
|
|
backend?: StorageBackend
|
|
}
|
|
|
|
export interface UserDefineFetchResult {
|
|
status: UserDefineFetchStatus
|
|
content: string
|
|
code?: number
|
|
message?: string
|
|
}
|
|
|
|
export function setUserDefine(
|
|
lessonId: string | number,
|
|
key: string | number,
|
|
value: string,
|
|
options?: StorageOptions
|
|
): void
|
|
|
|
export function getUserDefineResult(
|
|
lessonId: string | number,
|
|
key: string | number,
|
|
options?: StorageOptions
|
|
): Promise<UserDefineFetchResult>
|
|
|
|
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>
|
|
}
|