admin

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskInfoController

type TaskInfoController struct {
	*cool.Controller
}

func (*TaskInfoController) Log added in v0.2.1

func (c *TaskInfoController) Log(ctx g.Ctx, req *TaskInfoLogReq) (res *cool.BaseRes, err error)

Log 任务日志

func (*TaskInfoController) Once added in v0.2.1

func (c *TaskInfoController) Once(ctx g.Ctx, req *TaskInfoOnceReq) (res *cool.BaseRes, err error)

Once 执行一次

func (*TaskInfoController) Start added in v0.2.1

func (c *TaskInfoController) Start(ctx g.Ctx, req *TaskInfoStartReq) (res *cool.BaseRes, err error)

Start 启动任务

func (*TaskInfoController) Stop added in v0.2.1

func (c *TaskInfoController) Stop(ctx g.Ctx, req *TaskInfoStopReq) (res *cool.BaseRes, err error)

Stop 停止任务

type TaskInfoLogReq added in v0.2.1

type TaskInfoLogReq struct {
	g.Meta `path:"/log" method:"GET"`
	ID     int64 `json:"id"`
	Status int   `json:"status"`
}

TaskInfoLogReq 请求参数

type TaskInfoOnceReq added in v0.2.1

type TaskInfoOnceReq struct {
	g.Meta `path:"/once" method:"POST"`
	ID     int64 `json:"id" v:"required#请输入id"`
}

TaskInfoOnceReq 请求参数

type TaskInfoStartReq added in v0.2.1

type TaskInfoStartReq struct {
	g.Meta `path:"/start" method:"GET"`
	ID     int64 `json:"id" v:"required#请输入id"`
}

TaskInfoStartReq 请求参数

type TaskInfoStopReq added in v0.2.1

type TaskInfoStopReq struct {
	g.Meta `path:"/stop" method:"GET"`
	ID     int64 `json:"id" v:"required#请输入id"`
}

TaskInfoStopReq 请求参数

Jump to

Keyboard shortcuts

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