admin_app

package
v0.0.0-...-9681a29 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(app_settings common.AppSettings, database database.Database) *gin.Engine

Types

type AddImageRequest

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

type AddPostRequest

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

type ChangePostRequest

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

type DeleteImageBinding

type DeleteImageBinding struct {
	Name string `uri:"name" binding:"required"`
}

type DeletePostBinding

type DeletePostBinding struct {
	common.IntIdBinding
}

type GetImageResponse

type GetImageResponse struct {
	Id        string `json:"uuid"`
	Name      string `json:"name"`
	AltText   string `json:"alt_text"`
	Extension string `json:"extension"`
}

type GetPostResponse

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

type ImageIdResponse

type ImageIdResponse struct {
	Id string `json:"id"`
}

type PostIdResponse

type PostIdResponse struct {
	Id int `json:"id"`
}

Jump to

Keyboard shortcuts

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