mirror of
https://gitee.com/log4j/pig-ui.git
synced 2025-01-03 23:42:23 +08:00
34 lines
508 B
JavaScript
34 lines
508 B
JavaScript
import request from '@/router/axios'
|
|
|
|
const path = '{{path}}';
|
|
export function getList(query) {
|
|
return request({
|
|
url: `${path}/page`,
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function addObj(obj) {
|
|
return request({
|
|
url: `${path}`,
|
|
method: 'post',
|
|
data: obj
|
|
})
|
|
}
|
|
|
|
export function delObj(id) {
|
|
return request({
|
|
url: `${path}/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
export function putObj(obj) {
|
|
return request({
|
|
url: `${path}`,
|
|
method: 'put',
|
|
data: obj
|
|
})
|
|
}
|