/** 查询 ASIN 详情抽屉保存适配(任务 74):PUT/DELETE /api/admin/query-asins/{id}/countries/{country}。 */ import { http } from '@/api/http' export const QUERY_ASIN_DETAIL_ENDPOINT = '/api/admin/query-asins' function countryUrl(id: number, country: string): string { return `${QUERY_ASIN_DETAIL_ENDPOINT}/${id}/countries/${country}` } /** 保存某国家 ASIN(body { asin });返回后由列表刷新回读最新行。 */ export async function updateQueryAsinCountryAsin(id: number, country: string, asin: string): Promise { await http.put(countryUrl(id, country), { asin }) } /** 删除某国家 ASIN(清空该站点 ASIN)。 */ export async function deleteQueryAsinCountryAsin(id: number, country: string): Promise { await http.delete(countryUrl(id, country)) }