import { defHttp } from '/@/utils/http/axios';

const baseApi = '/v1/product/goods-price-distributor-relation';

/**
 * 新增
 */
export const add = (data) => defHttp.post({ url: `${baseApi}/`, data: data });

export const search = (params) => defHttp.get({ url: `${baseApi}/search`, params });

export const getById = (id) => defHttp.get({ url: `${baseApi}/${id}` });

export const update = (data) => defHttp.put({ url: `${baseApi}/`, data });

export const remove = (id) => defHttp.delete({ url: `${baseApi}/${id}` });
