Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobController ¶
type JobController struct {
beego.Controller
}
Job 接口
func (*JobController) ActiveJob ¶
func (this *JobController) ActiveJob()
@Title ActiveJob @Description Gen Tasks From Job , and Delivery Tasks @Param token header string true "authToken" @Param id path string "" true "id" @Param account query string "admin" false "租户" @Success 200 {object} models.Result @router /:id/active [put]
func (*JobController) AddJob ¶
func (this *JobController) AddJob()
@Title AddJob @Description Add Job @Param token header string true "authToken" @Param body body models.Job false "Job" @Success 200 {object} models.Result @router /add [post]
func (*JobController) DeactiveJob ¶
func (this *JobController) DeactiveJob()
@Title DeactiveJob @Description Deactive Job @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.Result @router /:id/deactive [put]
func (*JobController) DeleteJob ¶
func (this *JobController) DeleteJob()
@Title DeleteJob @Description Delete Job @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.Result @router /:id [delete]
func (*JobController) GetJobList ¶
func (this *JobController) GetJobList()
@Title GetJobList @Description Get Job List @Param token header string true "authToken" @Param body body models.Job false "Job" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router / [post]
func (*JobController) UpdateJob ¶
func (this *JobController) UpdateJob()
@Title UpdateJob @Description Update Job @Param token header string true "authToken" @Param id path string "" true "id" @Param body body models.Job false "Job" @Success 200 {object} models.Result @router /:id [put]
type TaskController ¶
type TaskController struct {
beego.Controller
}
Task 接口
func (*TaskController) DeleteTask ¶
func (this *TaskController) DeleteTask()
@Title DeleteTask @Description Delete Task @Param token header string true "authToken" @Param id path string "" true "id" @Success 200 {object} models.Result @router / [delete]
func (*TaskController) GetTaskList ¶
func (this *TaskController) GetTaskList()
@Title GetTaskList @Description Get Task List @Param token header string true "authToken" @Param body body models.Task false "任务" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router / [post]
func (*TaskController) GetTaskLogList ¶
func (this *TaskController) GetTaskLogList()
@Title GetTaskLogList @Description Get TaskLog List @Param token header string true "authToken" @Param body body models.TaskLog false "任务调度" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /logs [post]