feat: 后端发起流程

This commit is contained in:
dap
2025-08-19 11:08:50 +08:00
parent a4a7f7d096
commit 45b584b092
4 changed files with 76 additions and 27 deletions

View File

@@ -60,3 +60,15 @@ export function leaveUpdate(data: LeaveForm) {
export function leaveRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/workflow/leave/${id}`);
}
/**
* 提交 & 发起流程(后端发起)
* @param data data
* @returns void
*/
export function submitAndStartWorkflow(data: LeaveForm) {
return requestClient.postWithMsg<void>(
'/workflow/leave/submitAndFlowStart',
data,
);
}