Skip to content

Commit

Permalink
api definition: add two param to workflow detail api
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN committed Oct 9, 2024
1 parent 6747766 commit ab7019e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqle/api/controller/v2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,8 @@ type WorkflowRecordResV2 struct {
Tasks []*WorkflowTaskItem `json:"tasks"`
CurrentStepNumber uint `json:"current_step_number,omitempty"`
Status string `json:"status" enums:"wait_for_audit,wait_for_execution,rejected,canceled,exec_failed,executing,finished"`
Executable bool `json:"executable"`
ExecutableReason string `json:"executable_reason"`
Steps []*WorkflowStepResV2 `json:"workflow_step_list,omitempty"`
}

Expand Down
6 changes: 6 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18323,6 +18323,12 @@ var doc = `{
"current_step_number": {
"type": "integer"
},
"executable": {
"type": "boolean"
},
"executable_reason": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
Expand Down
6 changes: 6 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18307,6 +18307,12 @@
"current_step_number": {
"type": "integer"
},
"executable": {
"type": "boolean"
},
"executable_reason": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
Expand Down
4 changes: 4 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5379,6 +5379,10 @@ definitions:
properties:
current_step_number:
type: integer
executable:
type: boolean
executable_reason:
type: string
status:
enum:
- wait_for_audit
Expand Down

0 comments on commit ab7019e

Please sign in to comment.