dto

package
v0.0.0-...-91de801 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 AddImageRequest

type AddImageRequest struct {
	Alt string `json:"alt"`
}

type AddPostRequest

type AddPostRequest struct {
	Title   string `json:"title" validate:"required"`
	Excerpt string `json:"excerpt" validate:"required"`
	Content string `json:"content" validate:"required"`
}

type ImageBinding

type ImageBinding struct {
	UUID string `uri:"uuid" binding:"required"`
}

type PostBinding

type PostBinding struct {
	Id string `uri:"id" binding:"required"`
}

type UpdatePostRequest

type UpdatePostRequest struct {
	ID      int    `json:"id"`
	Title   string `json:"title"`
	Excerpt string `json:"excerpt"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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