This commit is contained in:
2026-04-30 17:49:07 +08:00
parent 805d6f8cae
commit 9d684cb7b3
615 changed files with 15368 additions and 6172 deletions

View File

@@ -1,3 +1,4 @@
import type { PuzzleDraftLevel } from '../../../packages/shared/src/contracts/puzzleAgentDraft';
import type {
PuzzleWorkDetailResponse,
PuzzleWorkMutationResponse,
@@ -52,16 +53,19 @@ export async function getPuzzleWorkDetail(profileId: string) {
/**
* 更新已发布或草稿态拼图作品的轻量字段。
* 只覆盖结果页约定的标题、摘要、标签正式图。
* 只覆盖结果页约定的作品信息、首关摘要、标签正式图与关卡列表
*/
export async function updatePuzzleWork(
profileId: string,
payload: {
workTitle?: string;
workDescription?: string;
levelName: string;
summary: string;
themeTags: string[];
coverImageSrc?: string | null;
coverAssetId?: string | null;
levels: PuzzleDraftLevel[];
},
) {
return requestJson<PuzzleWorkMutationResponse>(