init
This commit is contained in:
46
src/api/workflow/business.js
Normal file
46
src/api/workflow/business.js
Normal file
@@ -0,0 +1,46 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function refreshBusiness() {
|
||||
return request({
|
||||
url: '/workflow/business/refresh',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function pageBusiness(data) {
|
||||
return request({
|
||||
url: '/workflow/business/page',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
export function getBusiness(id) {
|
||||
return request({
|
||||
url: '/workflow/business/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function delBusiness(id) {
|
||||
return request({
|
||||
url: '/workflow/business/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function addBusiness(data) {
|
||||
return request({
|
||||
url: '/workflow/business',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateBusiness(data) {
|
||||
return request({
|
||||
url: '/workflow/business/' + data.id,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user