feat: bpm api
parent
b2e9da144c
commit
2cf363d6e8
|
@ -2,13 +2,14 @@ import { UploadApiResult } from './model/uploadModel'
|
||||||
import { defHttp } from '@/utils/http/axios'
|
import { defHttp } from '@/utils/http/axios'
|
||||||
import { UploadFileParams } from '@/types/axios'
|
import { UploadFileParams } from '@/types/axios'
|
||||||
import { useGlobSetting } from '@/hooks/setting'
|
import { useGlobSetting } from '@/hooks/setting'
|
||||||
|
import { AxiosProgressEvent } from 'axios'
|
||||||
|
|
||||||
const { uploadUrl = '' } = useGlobSetting()
|
const { uploadUrl = '' } = useGlobSetting()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: Upload interface
|
* @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>(
|
return defHttp.uploadFile<UploadApiResult>(
|
||||||
{
|
{
|
||||||
url: uploadUrl,
|
url: uploadUrl,
|
||||||
|
|
|
@ -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 })
|
||||||
|
}
|
Loading…
Reference in New Issue