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.
30 lines
679 B
30 lines
679 B
4 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export type TaskAssignVO = {
|
||
|
id: number
|
||
|
modelId: string
|
||
|
processDefinitionId: string
|
||
|
taskDefinitionKey: string
|
||
|
taskDefinitionName: string
|
||
|
options: string[]
|
||
|
type: number
|
||
|
}
|
||
|
|
||
|
export const getTaskAssignRuleList = async (params) => {
|
||
|
return await request.get({ url: '/bpm/task-assign-rule/list', params })
|
||
|
}
|
||
|
|
||
|
export const createTaskAssignRule = async (data: TaskAssignVO) => {
|
||
|
return await request.post({
|
||
|
url: '/bpm/task-assign-rule/create',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export const updateTaskAssignRule = async (data: TaskAssignVO) => {
|
||
|
return await request.put({
|
||
|
url: '/bpm/task-assign-rule/update',
|
||
|
data: data
|
||
|
})
|
||
|
}
|