feat: bpm api

pull/4/MERGE
xingyu 2023-04-12 22:13:41 +08:00
parent b2e9da144c
commit 2cf363d6e8
2 changed files with 15 additions and 1 deletions

View File

@ -2,13 +2,14 @@ import { UploadApiResult } from './model/uploadModel'
import { defHttp } from '@/utils/http/axios'
import { UploadFileParams } from '@/types/axios'
import { useGlobSetting } from '@/hooks/setting'
import { AxiosProgressEvent } from 'axios'
const { uploadUrl = '' } = useGlobSetting()
/**
* @description: Upload interface
*/
export function uploadApi(params: UploadFileParams, onUploadProgress: (progressEvent: ProgressEvent) => void) {
export function uploadApi(params: UploadFileParams, onUploadProgress: (progressEvent: AxiosProgressEvent) => void) {
return defHttp.uploadFile<UploadApiResult>(
{
url: uploadUrl,

View File

@ -0,0 +1,13 @@
import { defHttp } from '@/utils/http/axios'
export function getProcessDefinitionPage(params) {
return defHttp.get({ url: '/bpm/process-definition/page', params })
}
export function getProcessDefinitionList(params) {
return defHttp.get({ url: '/bpm/process-definition/list', params })
}
export function getProcessDefinitionBpmnXML(id) {
return defHttp.get({ url: '/bpm/process-definition/get-bpmn-xml?id=' + id })
}