21 lines
400 B
TypeScript
21 lines
400 B
TypeScript
import request from "@/sheep/utils/request"
|
|
|
|
export default {
|
|
getSpuCategory: () =>
|
|
request({
|
|
url: "/supermarket/app/shopCategory/list",
|
|
method: "GET",
|
|
}),
|
|
getSpuList: (params: any) =>
|
|
request({
|
|
url: "/supermarket/app/shopSpu/page",
|
|
method: "GET",
|
|
params,
|
|
}),
|
|
getSpuDetail: (id: any) =>
|
|
request({
|
|
url: `/supermarket/app/shopSpu/detail/${id}`,
|
|
method: "GET",
|
|
}),
|
|
}
|