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.
35 lines
552 B
35 lines
552 B
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/param',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/param/',
|
|
method: 'delete',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/param',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getValueByCode(code) {
|
|
return request({
|
|
url: 'api/param/getValueByCode',
|
|
method: 'post',
|
|
data: code
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, getValueByCode }
|
|
|