52 lines
992 B
JavaScript
52 lines
992 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询北京新发地农产品行情列表
|
||
|
export function listProduct(query) {
|
||
|
return request({
|
||
|
url: '/xinfadi/product/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询北京新发地农产品行情详细
|
||
|
export function getProduct(id) {
|
||
|
return request({
|
||
|
url: '/xinfadi/product/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增北京新发地农产品行情
|
||
|
export function addProduct(data) {
|
||
|
return request({
|
||
|
url: '/xinfadi/product',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改北京新发地农产品行情
|
||
|
export function updateProduct(data) {
|
||
|
return request({
|
||
|
url: '/xinfadi/product',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除北京新发地农产品行情
|
||
|
export function delProduct(id) {
|
||
|
return request({
|
||
|
url: '/xinfadi/product/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function listProductCat() {
|
||
|
return request({
|
||
|
url: '/xinfadi/product/listProductCat',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|