feat: 完成全部接口替换为新后端接口

This commit is contained in:
R524809
2026-10-19 13:19:07 +08:00
parent 8de06ce66b
commit 997042789d
40 changed files with 1946 additions and 785 deletions
+5 -7
View File
@@ -1,7 +1,5 @@
import type {
WorksheetCloudCategory,
WorksheetStatus,
} from '../core/models/worksheet';
import type { CategoryId } from '../core/models/category';
import type { WorksheetConfig } from '../core/models/worksheet';
/**
* 调试发布时的裁剪模式。
@@ -19,7 +17,7 @@ export interface DebugPublishMeta {
id: string;
title: string;
subtitle: string;
category: WorksheetCloudCategory;
category: CategoryId;
subcategory?: string;
path: string;
ageMin: number;
@@ -31,7 +29,7 @@ export interface DebugPublishMeta {
isNew: boolean;
isHot: boolean;
sortOrder?: number;
status: WorksheetStatus;
status: WorksheetConfig['status'];
}
/** 发布弹窗里可调的图片处理参数。 */
@@ -118,7 +116,7 @@ export function getCropRatios(mode: DebugCropMode): {
/** 统一构造预览图在云存储中的路径。 */
export function buildWorksheetPreviewCloudPath(
category: WorksheetCloudCategory,
category: CategoryId,
id: string,
): string {
return `assets/previews/${category}/${id}.jpg`;