task

package
v0.0.0-...-a4d71d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(c *gin.Context)

TODO: 定时任务停止功能

func GetTaskList

func GetTaskList(c *gin.Context)

Types

type CreateTaskReq

type CreateTaskReq struct {
	model.Task
	OutputSysDBID string `json:"sysdb_id"`
}

type CreateTaskResp

type CreateTaskResp struct {
	ID       uint64    `json:"id"`
	CreateAt time.Time `json:"create_at"`
}

type GetTaskListReq

type GetTaskListReq struct {
	Size   int `json:"size" form:"size"`
	Offset int `json:"offset" form:"offset"`
}

type GetTaskListResp

type GetTaskListResp struct {
	Total int          `json:"total"`
	Data  []model.Task `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL