package
Version:
v0.0.0-...-d5ed70e
Opens a new window with list of versions in this module.
Published: Dec 27, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 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 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 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.