seatonwan9
2025-08-28 bfbb1ea3c6bb2dd7db064fb189290a1bfcf6c9cd
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
import createAxios from '@/utils/axios'
 
let url = '/test/report/product/'
 
const productApi = {
    // 获取产品列表
    getProductList(data: any): ApiPromise {
        return createAxios({
            url: `${url}accessApplyList`,
            method: 'POST',
            data: data,
        }) as ApiPromise
    },
 
    // 根据ID获取产品详情
    getProductById(data: any): ApiPromise {
        return createAxios({
            url: `${url}get`,
            method: 'post',
            data: data,
        }) as ApiPromise
    },
   getCategoryByParent(data: any):ApiPromise{
    return createAxios({
        url: `${url}categoryByParent`,
        method: 'post',
        data: data,
    }) as ApiPromise
   }
}
 
export default productApi