feat: 以图搜图返回 business_data 包含 name/spec_model/url,支持详情页跳转

This commit is contained in:
DXC
2026-05-25 17:52:03 +08:00
parent 895d78a5e7
commit 92e1f7275e
3 changed files with 179 additions and 71 deletions

View File

@ -47,6 +47,27 @@ export interface ImageSearchItem {
spec_model: string
image_url: string
similarity: number
module_name: string
target_id: number
business_data: {
record_id: number
name?: string
spec_model?: string
sku?: string
barcode?: string
serial_number?: string
batch_number?: string
status?: string
warehouse_location?: string
stock_quantity?: number
sale_price?: number
common_name?: string
category?: string
material_type?: string
unit?: string
module_name: string
url: string
}
}
/** 以图搜图响应结构 */