talk_appAmin/api/signln/SignProduct/SignProduct.js

45 lines
808 B
JavaScript

import request from '@/utils/request'
// 查询商品列表
export function listSignProduct(query) {
return request({
url: '/SignProduct/SignProduct/list',
method: 'get',
params: query
})
}
// 查询商品详细
export function getSignProduct(id) {
return request({
url: '/SignProduct/SignProduct/' + id,
method: 'get'
})
}
// 新增商品
export function addSignProduct(data) {
return request({
url: '/SignProduct/SignProduct',
method: 'post',
data: data
})
}
// 修改商品
export function updateSignProduct(data) {
return request({
url: '/SignProduct/SignProduct',
method: 'put',
data: data
})
}
// 删除商品
export function delSignProduct(id) {
return request({
url: '/SignProduct/SignProduct/' + id,
method: 'delete'
})
}