2022-11-24 23:37:34 +08:00
|
|
|
// Package cron
|
|
|
|
// @Link https://github.com/bufanyun/hotgo
|
2023-02-23 17:53:04 +08:00
|
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
2022-11-24 23:37:34 +08:00
|
|
|
// @Author Ms <133814250@qq.com>
|
|
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
|
|
package cron
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
"hotgo/internal/model/input/form"
|
|
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GroupListReq 查询列表
|
|
|
|
type GroupListReq struct {
|
2023-05-10 23:54:50 +08:00
|
|
|
g.Meta `path:"/cronGroup/list" method:"get" tags:"定时任务分组" summary:"获取定时任务分组列表"`
|
|
|
|
sysin.CronGroupListInp
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GroupListRes struct {
|
|
|
|
List []*sysin.CronGroupListModel `json:"list" dc:"数据列表"`
|
|
|
|
form.PageRes
|
|
|
|
}
|
|
|
|
|
|
|
|
// GroupViewReq 获取信息
|
|
|
|
type GroupViewReq struct {
|
2023-01-25 11:49:21 +08:00
|
|
|
g.Meta `path:"/cronGroup/view" method:"get" tags:"定时任务分组" summary:"获取指定信息"`
|
2023-05-10 23:54:50 +08:00
|
|
|
sysin.CronGroupViewInp
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
type GroupViewRes struct {
|
|
|
|
*sysin.CronGroupViewModel
|
|
|
|
}
|
|
|
|
|
|
|
|
// GroupEditReq 修改/新增
|
|
|
|
type GroupEditReq struct {
|
2023-01-25 11:49:21 +08:00
|
|
|
g.Meta `path:"/cronGroup/edit" method:"post" tags:"定时任务分组" summary:"修改/新增定时任务分组"`
|
2023-05-10 23:54:50 +08:00
|
|
|
sysin.CronGroupEditInp
|
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2023-05-10 23:54:50 +08:00
|
|
|
type GroupEditRes struct {
|
|
|
|
*sysin.CronGroupEditModel
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// GroupDeleteReq 删除
|
|
|
|
type GroupDeleteReq struct {
|
2023-01-25 11:49:21 +08:00
|
|
|
g.Meta `path:"/cronGroup/delete" method:"post" tags:"定时任务分组" summary:"删除定时任务分组"`
|
2023-05-10 23:54:50 +08:00
|
|
|
sysin.CronGroupDeleteInp
|
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2023-05-10 23:54:50 +08:00
|
|
|
type GroupDeleteRes struct {
|
|
|
|
*sysin.CronGroupDeleteModel
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// GroupMaxSortReq 最大排序
|
|
|
|
type GroupMaxSortReq struct {
|
2023-02-08 20:29:34 +08:00
|
|
|
g.Meta `path:"/cronGroup/maxSort" method:"get" tags:"定时任务分组" summary:"定时任务分组最大排序"`
|
2023-05-10 23:54:50 +08:00
|
|
|
sysin.CronGroupMaxSortInp
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
type GroupMaxSortRes struct {
|
2023-05-10 23:54:50 +08:00
|
|
|
*sysin.CronGroupMaxSortModel
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// GroupStatusReq 更新状态
|
|
|
|
type GroupStatusReq struct {
|
2023-01-25 11:49:21 +08:00
|
|
|
g.Meta `path:"/cronGroup/status" method:"post" tags:"定时任务分组" summary:"更新定时任务分组状态"`
|
2023-05-10 23:54:50 +08:00
|
|
|
sysin.CronGroupStatusInp
|
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2023-05-10 23:54:50 +08:00
|
|
|
type GroupStatusRes struct {
|
|
|
|
*sysin.CronGroupStatusModel
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// GroupSelectReq 定时任务分组选项
|
|
|
|
type GroupSelectReq struct {
|
2023-01-25 11:49:21 +08:00
|
|
|
g.Meta `path:"/cronGroup/select" method:"get" tags:"定时任务分组" summary:"定时任务分组选项"`
|
2023-07-20 18:01:10 +08:00
|
|
|
sysin.CronGroupSelectInp
|
2022-11-24 23:37:34 +08:00
|
|
|
}
|
|
|
|
|
2023-02-26 14:18:22 +08:00
|
|
|
type GroupSelectRes struct {
|
|
|
|
*sysin.CronGroupSelectModel
|
|
|
|
}
|