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.
 
 
 
 
 
 

39 lines
629 B

import request from '@/utils/request'
export function getPage(query) {
return request({
url: 'bxg/api/material/page',
method: 'get',
params: query
})
}
export function addObj(obj) {
return request({
url: 'bxg/api/material',
method: 'post',
data: obj
})
}
export function getObj(id) {
return request({
url: 'bxg/api/material/' + id,
method: 'get'
})
}
export function delObj(id) {
return request({
url: 'bxg/api/material/' + id,
method: 'delete'
})
}
export function putObj(obj) {
return request({
url: 'bxg/api/material',
method: 'put',
data: obj
})
}