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.
50 lines
893 B
50 lines
893 B
import request from '@/utils/request'
|
|
|
|
// 查询企业信息列表
|
|
export function listEnterprise(query) {
|
|
return request({
|
|
url: '/enterprise/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询企业信息详细
|
|
export function getEnterprise(id) {
|
|
return request({
|
|
url: '/enterprise/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增企业信息
|
|
export function addEnterprise(data) {
|
|
return request({
|
|
url: '/enterprise',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改企业信息
|
|
export function updateEnterprise(data) {
|
|
return request({
|
|
url: '/enterprise',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除企业信息
|
|
export function delEnterprise(id) {
|
|
return request({
|
|
url: '/enterprise/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
export function updateStatus(id,status){
|
|
return request({
|
|
url: '/enterprise/'+id+'/'+status,
|
|
method: 'put'
|
|
})
|
|
}
|
|
|