15 lines
412 B
JavaScript
15 lines
412 B
JavaScript
|
|
import {get} from '../request';
|
|
|
|
const prefix = 'product/'
|
|
|
|
export const getProductListApi = async (param) => {
|
|
return await get(`${prefix}list`, param)
|
|
}
|
|
export const getCategoryListByPidApi = async (pid = 0) => {
|
|
return await get(`${prefix}category-list-by-pid`, {pid})
|
|
}
|
|
export const getProductDetailApi = async (id = 0, p_user_id = 0) => {
|
|
return await get(`${prefix}detail`, {id, p_user_id})
|
|
}
|