request

package
v0.0.0-...-d5ed70e Latest Latest
Warning

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

Go to latest
Published: Dec 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 ArticleCreateRequest

type ArticleCreateRequest struct {
	Title     string `validate:"required min=1, max=255" json:"Title"`
	Body      string `validate:"required min=1, max=65,535" json:"Body"`
	Category  string `validate:"required min=1, max=16" json:"Category"`
	Thumbnail string `json:"Thumbnail"`
}

type ArticleUpdateRequest

type ArticleUpdateRequest struct {
	UUID      string `json:"UUID"`
	Title     string `validate:"required min=1, max=255" json:"Title"`
	Body      string `validate:"required min=1, max=65,535" json:"Body"`
	ERT       int    `json:"ERT"`
	Category  string `validate:"required min=1, max=16" json:"Category"`
	Thumbnail string `json:"Thumbnail"`
}

type UserCreateRequest

type UserCreateRequest struct {
	Username string `validate:"required min=3, max=24" json:"Username"`
	Email    string `validate:"required min=1, max=65,535" json:"Email"`
	Pw       string `validate:"required min=8, max=255" json:"Pw"`
	Bio      string `json:"Bio"`
	PFP      string `json:"PFP"`
}

type UserUpdateRequest

type UserUpdateRequest struct {
	UUID     string `json:"UUID"`
	Username string `validate:"required min=3, max=24" json:"Username"`
	Email    string `validate:"required min=1, max=65,535" json:"Email"`
	Bio      string `json:"Bio"`
	PFP      string `json:"PFP"`
}

Jump to

Keyboard shortcuts

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