Bang Hu
2025-09-03 a4188f41f3bc981fe8fa92c253a1195b76be04dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import createAxios from '@/utils/axios'
 
let url = '/report/product/'
 
const productApi = {
    // 获取产品列表
    getProductList(data: any): ApiPromise {
        return createAxios({
            baseURL: '/api',
            url: `${url}accessApplyList`,
            method: 'POST',
            data: data,
        }) as ApiPromise
    },
 
    // 根据ID获取产品详情
    getProductById(data: any): ApiPromise {
        return createAxios({
            baseURL: '/api',
            url: `${url}get`,
            method: 'post',
            data: data,
        }) as ApiPromise
    },
   getCategoryByParent(data: any):ApiPromise{
    return createAxios({
        baseURL: '/api',
        url: `${url}categoryByParent`,
        method: 'post',
        data: data,
    }) as ApiPromise
   }
}
 
export default productApi