Files
zmkgC/api/v1/system/manage_task_cron.go
2025-07-07 20:11:59 +08:00

88 lines
3.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-06-04 14:33:05
// 生成路径: api/v1/system/manage_task_cron.go
// 生成人gfast
// desc:航线任务定时飞行相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ManageTaskCronSearchReq 分页请求参数
type ManageTaskCronSearchReq struct {
g.Meta `path:"/list" tags:"航线任务定时飞行" method:"get" summary:"航线任务定时飞行列表"`
Id string `p:"id"` //主键ID
MqClientId string `p:"mqClientId"` //sn
TaskId string `p:"taskId" v:"taskId@integer#任务模板ID需为整数"` //任务模板ID
Cron string `p:"cron"` //表达式
CronId string `p:"cronId" v:"cronId@integer#cronID需为整数"` //cronID
commonApi.PageReq
commonApi.Author
}
// ManageTaskCronSearchRes 列表返回结果
type ManageTaskCronSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageTaskCronListRes `json:"list"`
}
// ManageTaskCronAddReq 添加操作请求参数
type ManageTaskCronAddReq struct {
g.Meta `path:"/add" tags:"航线任务定时飞行" method:"post" summary:"航线任务定时飞行添加"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#sn不能为空"`
TaskId int64 `p:"taskId" v:"required#任务模板ID不能为空"`
Cron string `p:"cron" v:"required#表达式不能为空"`
}
// ManageTaskCronAddRes 添加操作返回结果
type ManageTaskCronAddRes struct {
commonApi.EmptyRes
}
// ManageTaskCronEditReq 修改操作请求参数
type ManageTaskCronEditReq struct {
g.Meta `path:"/edit" tags:"航线任务定时飞行" method:"put" summary:"航线任务定时飞行修改"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
Cron string `p:"cron" v:"required#表达式不能为空"`
}
// ManageTaskCronEditRes 修改操作返回结果
type ManageTaskCronEditRes struct {
commonApi.EmptyRes
}
// ManageTaskCronGetReq 获取一条数据请求
type ManageTaskCronGetReq struct {
g.Meta `path:"/get" tags:"航线任务定时飞行" method:"get" summary:"获取航线任务定时飞行信息"`
commonApi.Author
MqClientId string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
}
// ManageTaskCronGetRes 获取一条数据结果
type ManageTaskCronGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageTaskCronInfoRes
}
// ManageTaskCronDeleteReq 删除数据请求
type ManageTaskCronDeleteReq struct {
g.Meta `path:"/delete" tags:"航线任务定时飞行" method:"delete" summary:"删除航线任务定时飞行"`
commonApi.Author
MqClientId []string `p:"mqClientId" v:"required#mqClientId必须"` //通过主键获取
}
// ManageTaskCronDeleteRes 删除数据返回
type ManageTaskCronDeleteRes struct {
commonApi.EmptyRes
}