You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
751 B
JavaScript
49 lines
751 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function listGoods(query) {
|
|
return request({
|
|
url: '/goods/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function deleteGoods(data) {
|
|
return request({
|
|
url: '/goods/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function publishGoods(data) {
|
|
return request({
|
|
url: '/goods/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function detailGoods(id) {
|
|
return request({
|
|
url: '/goods/detail',
|
|
method: 'get',
|
|
params: { id }
|
|
})
|
|
}
|
|
|
|
export function editGoods(data) {
|
|
return request({
|
|
url: '/goods/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function listCatAndBrand() {
|
|
return request({
|
|
url: '/goods/catAndBrand',
|
|
method: 'get'
|
|
})
|
|
}
|