You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
517 B
31 lines
517 B
import api from '@/utils/api'
|
|
import qs from 'qs'
|
|
|
|
export function add(data) {
|
|
return api({
|
|
url: '/move',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return api({
|
|
url: '/move',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(params) {
|
|
return api({
|
|
url: '/move',
|
|
method: 'delete',
|
|
params,
|
|
paramsSerializer: function(params) {
|
|
return qs.stringify(params, { indices: false })
|
|
}
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del }
|
|
|