package
Version:
v0.0.0-...-72c0d7f
Opens a new window with list of versions in this module.
Published: Jan 8, 2023
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (s *Service) PublicRoutes(r chi.Router)
func (s *Service) UserRoutes(r chi.Router)
type User struct {
Id int64 `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
IsAdmin bool `json:"is_admin"`
HasImg bool `json:"has_img"`
}
type UserCreation struct {
Username string `json:"username" validate:"required,gte=2,lte=24,alphanum"`
Password string `json:"password" validate:"required,gte=4,lte=128"`
Email string `json:"email" validate:"required,gte=0,lte=128,email"`
}
type UserDetails struct {
Id int64 `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
IsAdmin bool `json:"is_admin"`
Stories []story.StoryCard `json:"stories"`
HasImg bool `json:"has_img"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.