提交优化更新

This commit is contained in:
super
2026-05-29 16:49:18 +08:00
parent 2ed1250604
commit 225d13fb6e
36 changed files with 370 additions and 220 deletions

View File

@@ -1718,6 +1718,7 @@ export interface SimilarAsinParseVo {
droppedRows: number;
groupCount?: number;
aiPrompt?: string;
imgSwitch?: boolean;
items: SimilarAsinParsedRow[];
groups?: SimilarAsinParsedGroup[];
}
@@ -1776,15 +1777,16 @@ export interface SimilarAsinTaskBatchVo {
missingTaskIds?: number[];
}
export function parseSimilarAsin(files: UploadedFileRef[], apiKey?: string) {
export function parseSimilarAsin(files: UploadedFileRef[], apiKey?: string, imgSwitch = false) {
return unwrapJavaResponse(
post<
JavaApiResponse<SimilarAsinParseVo>,
{ user_id: number; files: UploadedFileRef[]; api_key?: string }
{ user_id: number; files: UploadedFileRef[]; api_key?: string; img_switch: boolean }
>(`${JAVA_API_PREFIX}/similar-asin/parse`, {
user_id: getCurrentUserId(),
files,
api_key: apiKey,
img_switch: imgSwitch,
}),
);
}
@@ -2231,10 +2233,16 @@ export interface CollectDataSourceFile {
export interface CollectDataFilters {
amount?: number | string | null;
rank?: number | null;
minAmount?: number | string | null;
maxAmount?: number | string | null;
min_amount?: number | string | null;
max_amount?: number | string | null;
rank?: boolean | null;
fba?: boolean | null;
fbm?: boolean | null;
countryCodes?: string[];
countryCode?: string | null;
country_code?: string | null;
}
export interface CollectDataParseRequest {