task

package
v0.0.0-...-629b230 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpTask

func DeleteExpTask(c *gin.Context)

func GetAllExpTasks

func GetAllExpTasks(c *gin.Context)

func GetExpTaskByID

func GetExpTaskByID(c *gin.Context)

func NewExpTask

func NewExpTask(c *gin.Context)

func UpdateExpTask

func UpdateExpTask(c *gin.Context)

Types

type NewExpTaskReqForm

type NewExpTaskReqForm struct {
	TaskFileHeader    *multipart.FileHeader `form:"task_file" binding:"required"`
	Title             string                `form:"title" binding:"required,min=1,max=50"`
	DeadlineTimestamp int64                 `form:"deadline_timestamp" binding:"required"`
}

type UpdateExpTaskReqBody

type UpdateExpTaskReqBody struct {
	Title             string `json:"title" binding:"required,min=1,max=50"`
	DeadlineTimestamp int64  `json:"deadline_timestamp" binding:"required"`
}

Jump to

Keyboard shortcuts

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