Documentation
¶
Index ¶
- func SetupRoutes(app_settings common.AppSettings, database database.Database) *gin.Engine
- type AddImageRequest
- type AddPageRequest
- type AddPostRequest
- type ChangePostRequest
- type DeleteImageBinding
- type DeletePostBinding
- type GetImageResponse
- type GetPostResponse
- type ImageIdResponse
- type PageResponse
- type PostIdResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRoutes ¶
Types ¶
type AddImageRequest ¶
type AddImageRequest struct {
Alt string `json:"alt"`
}
type AddPageRequest ¶
type AddPostRequest ¶
type ChangePostRequest ¶
type DeleteImageBinding ¶
type DeleteImageBinding struct {
Name string `uri:"name" binding:"required"`
}
type DeletePostBinding ¶
type DeletePostBinding struct {
common.IntIdBinding
}
type GetImageResponse ¶
type GetPostResponse ¶
type ImageIdResponse ¶
type ImageIdResponse struct {
Id string `json:"id"`
}
type PageResponse ¶
type PostIdResponse ¶
type PostIdResponse struct {
Id int `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.