Skip to content

Commit

Permalink
#114 Add workflow execution association request
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Oct 14, 2024
1 parent 0835f95 commit 17199c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions taskman-server/api/v2/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,12 @@ func handlePluginRequestCreate(input *models.PluginRequestCreateParamObj, callRe
if err = service.SaveRequestCacheV2(requestObj.Id, "system", token, &saveParam); err != nil {
return
}
// 更新请求状态
if err = service.UpdateRequestStatus(requestObj.Id, "Pending", "system", token, language, requestObj.Description); err != nil {
return
// 请求默认创建为草稿态,根据判断是否提交请求
if input.IsDraftStatus != "true" {
// 更新请求状态
if err = service.UpdateRequestStatus(requestObj.Id, "Pending", "system", token, language, requestObj.Description); err != nil {
return
}
}
return
}
Expand Down
1 change: 1 addition & 0 deletions taskman-server/models/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ type PluginRequestCreateParamObj struct {
RootDataId string `json:"rootDataId"`
ReportRole string `json:"reportRole"`
ReportUser string `json:"reportUser"`
IsDraftStatus string `json:"isDraftStatus"` // 是否为草稿态,true、false
}

type PluginRequestCreateResp struct {
Expand Down

0 comments on commit 17199c1

Please sign in to comment.