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: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Page struct {
Id int64 `json:"id"`
Author int64 `json:"author_id"`
Action string `json:"action" validate:"gte=0,lte=64"`
Body string `json:"body" validate:"gte=0,lte=4096"`
HasImg bool `json:"has_img"`
Choices []PageChoices `json:"choices"`
}
type PageChoices struct {
Id int64 `json:"page_id"`
Action string `json:"action"`
}
func (s *Service) PublicRoutes(r chi.Router)
func (s *Service) UserRoutes(r chi.Router)
type StoryCard struct {
Id int64 `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
AuthorName string `json:"author_name"`
HasImg bool `json:"has_img"`
Featured bool `json:"is_featured"`
}
type StoryCreation struct {
Id int64 `json:"id"`
Title string `json:"title" validate:"required,gte=0,lte=48"`
Description string `json:"description" validate:"lte=512"`
AuthorId int64 `json:"author_id"`
}
type StoryDetails struct {
Id int64 `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
First_page_id int64 `json:"first_page_id"`
AuthorName string `json:"author_name"`
HasImg bool `json:"has_img"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.