样式优化

This commit is contained in:
孙佳艺
2026-05-26 13:47:24 +08:00
parent d61dcdc8db
commit 01d15276ba
23 changed files with 6265 additions and 747 deletions
+19 -2
View File
@@ -77,11 +77,15 @@ export async function optimizePrompt(
): Promise<OptimizeResult> {
if (USE_MOCK) return mock.mockOptimizePrompt(projectId, params as any);
return api.post('/generation-records/optimize', {
project_id: projectId,
project_id: projectId,//项目id
gen_type:params.genType,//生成类型
prompt: params.prompt,
duration: params.duration,
references: params.references || null,
idempotency_key: params.idempotencyKey || null,
image_size: params.image_size || null,
image_proportion: params.image_proportion || null,
image_px: params.image_px || null,
});
}
@@ -160,8 +164,13 @@ export async function getSiteInfo(): Promise<{ siteName: string; siteLogo: strin
export async function getVideoEngines(): Promise<{ items: { id: string; name: string; provider: string; supportedRatios: string[]; supportedResolutions: string[]; supportedDurations: number[] }[] }> {
if (USE_MOCK) return { items: [{ id: 'mock', name: 'Seedance', provider: 'seedance', supportedRatios: ['16:9', '9:16', '1:1', '4:3', '3:4', '21:9'], supportedResolutions: ['480p', '720p', '1080p'], supportedDurations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] }] };
return api.get('/video-engines', false);
return api.get('/video-engines');
}
// 参数选择(图片)Parameters
export async function getParameters(): Promise<any[]> {
return api.get('/image-engines');
}
// ── SMS ───────────────────────────────────────────────────
@@ -266,3 +275,11 @@ export async function getMenuConfigs(): Promise<any[]> {
export async function getRechargePackages(): Promise<any[]> {
return api.get('/recharge-packages');
}
export async function getCreditRatios(): Promise<any[]> {
return api.get('/credits/ratios');
}