删除品牌
This commit is contained in:
@@ -127,6 +127,37 @@ export interface DeleteBrandPreviewRow {
|
||||
status: string
|
||||
}
|
||||
|
||||
export interface DeleteBrandCountryAsinItem {
|
||||
rowIndex: number
|
||||
asin: string
|
||||
status: string
|
||||
}
|
||||
|
||||
export interface DeleteBrandCountryGroup {
|
||||
country: string
|
||||
asinCount: number
|
||||
items: DeleteBrandCountryAsinItem[]
|
||||
}
|
||||
|
||||
export interface DeleteBrandCountryResultItem {
|
||||
asin: string
|
||||
status?: string
|
||||
}
|
||||
|
||||
export interface DeleteBrandProcessedCountry {
|
||||
country: string
|
||||
items: DeleteBrandCountryResultItem[]
|
||||
}
|
||||
|
||||
export interface DeleteBrandResultFile {
|
||||
sourceFilename: string
|
||||
countries: DeleteBrandProcessedCountry[]
|
||||
}
|
||||
|
||||
export interface DeleteBrandSubmitResultRequest {
|
||||
files: DeleteBrandResultFile[]
|
||||
}
|
||||
|
||||
export interface DeleteBrandResultItem {
|
||||
resultId?: number
|
||||
sourceFilename: string
|
||||
@@ -135,6 +166,9 @@ export interface DeleteBrandResultItem {
|
||||
shopId?: string
|
||||
platform?: string
|
||||
openStoreUrl?: string
|
||||
taskId?: number
|
||||
countryCount?: number
|
||||
countries?: DeleteBrandCountryGroup[]
|
||||
totalRows?: number
|
||||
truncated?: boolean
|
||||
previewRows?: DeleteBrandPreviewRow[]
|
||||
@@ -277,6 +311,10 @@ export function deleteDeleteBrandHistory(resultId: number) {
|
||||
}))
|
||||
}
|
||||
|
||||
export function submitDeleteBrandResult(taskId: number, request: DeleteBrandSubmitResultRequest) {
|
||||
return unwrapJavaResponse(post<JavaApiResponse<null>, DeleteBrandSubmitResultRequest>(`${JAVA_API_PREFIX}/delete-brand/tasks/${taskId}/result`, request))
|
||||
}
|
||||
|
||||
export function getJavaDownloadUrl(path: string) {
|
||||
const raw = path.startsWith('http://') || path.startsWith('https://') ? path : `${JAVA_API_PREFIX}${path}`
|
||||
const separator = raw.includes('?') ? '&' : '?'
|
||||
|
||||
Reference in New Issue
Block a user