2025-09-19 16:45:02 +08:00
|
|
|
import {
|
|
|
|
|
http
|
|
|
|
|
} from "../util/api";
|
|
|
|
|
|
2025-10-16 17:07:47 +08:00
|
|
|
const baseUrl = "http://192.168.0.26:3000"
|
|
|
|
|
|
2025-09-19 16:45:02 +08:00
|
|
|
export const mallAPI = {
|
2025-10-16 17:07:47 +08:00
|
|
|
getMallList: (params) => http.get(baseUrl + '/api/products', params),
|
|
|
|
|
getCategory: () => http.get(baseUrl + '/api/category'),
|
2025-10-17 14:10:49 +08:00
|
|
|
getMallDetail: (id) => http.get(baseUrl + '/api/products/' + id)
|
2025-09-19 16:45:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
mallAPI
|
|
|
|
|
}
|