import request from '@/utils/request'

export function listModeler(query) {
  return request({
    url: '/activiti/modeler/list',
    method: 'get',
    params: query
  })
}

export function addModeler(query) {
  return request({
    url: '/activiti/modeler/create',
    method: 'post',
    params: query
  })
}

export function deployModeler(modelId) {
  return request({
    url: '/activiti/modeler/deploy',
    method: 'post',
    params: {
      modelId: modelId
    }
  })
}

export function delModeler(ids) {
  return request({
    url: '/activiti/modeler/remove',
    method: 'post',
    params: {
      ids: ids
    }
  })
}
