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.
54 lines
788 B
54 lines
788 B
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// list
|
||
|
export function getEnterpriseList(query) {
|
||
|
return request({
|
||
|
url: `/shian/store/list`,
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// export
|
||
|
export function exportEnterprise(query) {
|
||
|
return request({
|
||
|
url: '/shian/store/export',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// DELETE
|
||
|
export function deleteEnterprise(ids) {
|
||
|
return request({
|
||
|
url: `/shian/store/${ids}`,
|
||
|
method: 'DELETE'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// info
|
||
|
export function getinfo(id) {
|
||
|
return request({
|
||
|
url: `/shian/store/${id}`,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// add
|
||
|
export function addEnterprise(data) {
|
||
|
return request({
|
||
|
url: '/shian/store',
|
||
|
method: 'post',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// update
|
||
|
export function updataEnterprise(data) {
|
||
|
return request({
|
||
|
url: '/shian/store',
|
||
|
method: 'put',
|
||
|
data
|
||
|
})
|
||
|
}
|