task

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Service services.TaskService
}

func (*Controller) DeleteBy

func (instance *Controller) DeleteBy(id string) mvc.Result

删除任务

func (*Controller) Get

func (instance *Controller) Get(ctx iris.Context) mvc.Result

Get 获取任务列表

func (*Controller) Post

func (instance *Controller) Post(ctx iris.Context) mvc.Result

创建任务

func (*Controller) PutBy

func (instance *Controller) PutBy(id string, ctx iris.Context) mvc.Result

更新任务

type UpdateRequest

type UpdateRequest struct {
	Name        string `json:"name" validate:"required"`
	Content     string `json:"content" validate:"required"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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