forked from xxhjsb/hbt-prevention-ui
22 lines
912 B
TypeScript
22 lines
912 B
TypeScript
import BaseService from "hbt-common/service/base.service"
|
|
import type { AxiosResponse } from 'axios'
|
|
import { ActionResult } from "hbt-common/models/actionResult";
|
|
export default class WorkFlowService extends BaseService<any>{
|
|
constructor(){
|
|
super()
|
|
}
|
|
|
|
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/workflow-task/create-process';
|
|
return this.post(url,params,{},true)
|
|
}
|
|
|
|
public again(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/workflow-task/again-candidate';
|
|
return this.post(url,params,{},true)
|
|
}
|
|
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/workflow-task/task-handle';
|
|
return this.post(url,params,{},true)
|
|
}
|
|
} |