Skip to content

Commit dc4d1ab

Browse files
authored
Merge pull request #2347 from actiontech/fix-issue1441-2
UpdateWorkflowScheduleV2 api add IsNotify && NotifyType
2 parents 854e728 + 1ab4b89 commit dc4d1ab

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

sqle/api/controller/v2/workflow.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,8 @@ func UpdateWorkflowV2(c echo.Context) error {
918918

919919
type UpdateWorkflowScheduleReqV2 struct {
920920
ScheduleTime *time.Time `json:"schedule_time"`
921+
IsNotify *bool `json:"is_notify"`
922+
NotifyType *string `json:"notify_type" enums:"Wechat"`
921923
}
922924

923925
// UpdateWorkflowScheduleV2

sqle/docs/docs.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13152,6 +13152,15 @@ var doc = `{
1315213152
"v2.UpdateWorkflowScheduleReqV2": {
1315313153
"type": "object",
1315413154
"properties": {
13155+
"is_notify": {
13156+
"type": "boolean"
13157+
},
13158+
"notify_type": {
13159+
"type": "string",
13160+
"enum": [
13161+
"Wechat"
13162+
]
13163+
},
1315513164
"schedule_time": {
1315613165
"type": "string"
1315713166
}

sqle/docs/swagger.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13136,6 +13136,15 @@
1313613136
"v2.UpdateWorkflowScheduleReqV2": {
1313713137
"type": "object",
1313813138
"properties": {
13139+
"is_notify": {
13140+
"type": "boolean"
13141+
},
13142+
"notify_type": {
13143+
"type": "string",
13144+
"enum": [
13145+
"Wechat"
13146+
]
13147+
},
1313913148
"schedule_time": {
1314013149
"type": "string"
1314113150
}

sqle/docs/swagger.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,6 +3740,12 @@ definitions:
37403740
type: object
37413741
v2.UpdateWorkflowScheduleReqV2:
37423742
properties:
3743+
is_notify:
3744+
type: boolean
3745+
notify_type:
3746+
enum:
3747+
- Wechat
3748+
type: string
37433749
schedule_time:
37443750
type: string
37453751
type: object

0 commit comments

Comments
 (0)