// @ts-ignore /* eslint-disable */ import request from "../poster-request"; /** 生成海报 从网页URL或HTML内容生成海报图像 POST /api/v1/poster */ export async function postApiV1Poster( body: { /** 要生成海报的网页URL */ webpage?: string; /** 要生成海报的HTML内容(可选,优先级高于webpage) */ html?: string; /** 设备缩放因子 */ device?: number; /** 海报宽度 */ width?: number; /** 海报高度 */ height?: number; /** 输出图像类型 */ type?: string; /** 编码类型 */ encoding?: string; }, options?: { [key: string]: any }, ) { return request<{ success?: boolean; data?: { name?: string; path?: string }; message?: string; code?: number; }>("/api/v1/poster", { method: "POST", headers: { "Content-Type": "application/json", }, data: body, ...(options || {}), }); }