web

package
v0.0.0-...-34c9f11 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodolistCreateRequest

type TodolistCreateRequest struct {
	Tags            []string `validate:"min=0,dive,required" json:"tags"`
	TodolistMessage string   `validate:"required,min=1,max=100" json:"todolistMessage"`
}

type TodolistResponse

type TodolistResponse struct {
	Id              string   `json:"id"`
	Done            bool     `json:"done"`
	Tags            []string `json:"tags"`
	TodolistMessage string   `json:"todolistMessage"`
	CreatedAt       string   `json:"createdAt"`
	UpdatedAt       string   `json:"updatedAt"`
}

type TodolistUpdateRequest

type TodolistUpdateRequest struct {
	Id              string   `validate:"required" json:"id"`
	Done            bool     `json:"done"`
	Tags            []string `validate:"min=0,dive,required" json:"tags"`
	TodolistMessage string   `validate:"required,min=1,max=100" json:"todolistMessage"`
}

type WebResponse

type WebResponse[T any] struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Data   T      `json:"data"`
}

Jump to

Keyboard shortcuts

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