web

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Title    string   `json:"title"`
	Messages []string `json:"messages"`
}

type RequestAuth

type RequestAuth struct {
	Username string `json:"username" form:"username" validate:"required"`
	Password string `json:"password" form:"password" validate:"required"`
}

type RequestParameterTodo

type RequestParameterTodo struct {
	Keyword string `json:"keyword" form:"keyword"`
	IsDone  string `json:"is_done" form:"is_done" validate:"oneof=true false"`
}

type RequestTodo

type RequestTodo struct {
	Name     string `json:"name" form:"name" validate:"required"`
	Priority string `json:"priority" form:"priority" validate:"required,oneof=low medium high"`
}

type ResponseStandard

type ResponseStandard struct {
	Code    int             `json:"code"`
	Message string          `json:"message"`
	Data    any             `json:"data"`
	Errors  []ErrorResponse `json:"errors"`
}

type ResponseToken

type ResponseToken struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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