import { get, post } from '@/utils/request';

export interface MasterProductQueryParams { page?: number; pageSize?: number; barcode?: string; code?: string; productName?: string; deviceAdapt?: string; }
export interface MasterProductListResponse { list: any[]; total: number; pageSize: number; currentPage: number; }

export function getMasterProductList(params: MasterProductQueryParams): Promise<MasterProductListResponse> { return get('/products/master/list', params); }
export function addToMerchantProducts(data: { codeList: string }): Promise<any> { return post('/products/master/add-to-merchant', data); }
