tickets

package
v0.0.0-...-b7dbb59 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(g *gin.RouterGroup, injector *wirex.Injector)

Handle is used to handle the tickets restful api.

Types

type CreateTicketPayload

type CreateTicketPayload struct {
	Title string `json:"title" binding:"required" example:"task title"`
}

CreateTicketPayload defines the create payload.

type ListTicketQuery

type ListTicketQuery struct {
	Page int `form:"page" default:"1" minimum:"1"`
	Size int `form:"size" default:"10" minimum:"1" maximum:"100"`
}

ListTicketQuery defines the list query.

type UpdateTicketPayload

type UpdateTicketPayload struct {
	*model.Ticket `json:",inline"`
}

UpdateTicketPayload defines the update payload.

Jump to

Keyboard shortcuts

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