Skip to content

Commit

Permalink
docs: 修复触发计划任务参数
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Apr 19, 2024
1 parent aec7b30 commit 1b57278
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions httpd/wrobot/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func (*Cronjob) delete(c *gin.Context) {
// @Summary 触发计划任务
// @Produce json
// @Tags BOT::计划任务
// @Param body body cronjob.FetchParam true "触发计划任务参数"
// @Success 200
// @Router /bot/cronjob/execute [post]
func (*Cronjob) execute(c *gin.Context) {
Expand Down
11 changes: 11 additions & 0 deletions public/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,17 @@
"BOT::计划任务"
],
"summary": "触发计划任务",
"parameters": [
{
"description": "触发计划任务参数",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/cronjob.FetchParam"
}
}
],
"responses": {
"200": {
"description": "OK"
Expand Down

0 comments on commit 1b57278

Please sign in to comment.