admin

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 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 {
	*dzhCore.Controller
}

func (*TaskInfoController) Log

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

Log 任务日志

func (*TaskInfoController) Once

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

Once 执行一次

func (*TaskInfoController) Start

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

Start 启动任务

func (*TaskInfoController) Stop

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

Stop 停止任务

type TaskInfoLogReq

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

TaskInfoLogReq 请求参数

type TaskInfoOnceReq

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

TaskInfoOnceReq 请求参数

type TaskInfoStartReq

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

TaskInfoStartReq 请求参数

type TaskInfoStopReq

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