user.js 848 Bytes
import request from '@/plugin/axios'
/**
 * 登录
 */
export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}
/**
 * 获取用户信息
 */
export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}
/**
 * 创建工作流
 */
export function createProcessInstance(data) {
  return request({
    url: '/workflow/createProcessInstance',
    method: 'post',
    data: data
  })
}
/**
 * 流程的预提交
 */
export function pretransitProcess(data) {
  return request({
    url: '/workflow/pretransitProcess',
    method: 'post',
    data: data
  })
}
/**
 * 流程提交
 */
export function transitProcess(data) {
  return request({
    url: '/workflow/transitProcess',
    method: 'post',
    data: data
  })
}