Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DateLayout is a layout used for dates DateLayout = "2006-01-02" // AuthHeaderKey is a header key used for authorization AuthHeaderKey = "Authorization" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRequest ¶
type ContentRequest struct {
ID int `json:"id" binding:"required"`
}
ContentRequest is a request expected in the /content PUT endpoint
type ContentResponse ¶
type ContentResponse struct { ID int `json:"id"` Name string `json:"name"` Status int `json:"status"` }
ContentResponse is a response provided by the /content GET endpoint
type UpdateItem ¶
UpdateItem is used for updating item in mysql database
Click to show internal directories.
Click to hide internal directories.