Files
lgp-wx-new/api/page/product.js
2026-06-05 14:06:20 +08:00

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})
}