Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { ID int `json:"id_category"` Name string `json:"name"` Description string `json:"description"` }
Category defines the structure of the category entity
type Image ¶
type Image struct { ID int `json:"id_image"` Description string `json:"description"` IDCategory string `json:"id_category"` URL string `json:"url"` CreatedAt string `json:"created_at"` Tag string `json:"tag"` }
Image defines the structure of the image entity.
type Response ¶
type Response struct { Status Status `json:"status"` Data interface{} `json:"data"` }
Response defines the structure of the response entity.
func SetResponse ¶
SetResponse set the structure of the JSON response.
Click to show internal directories.
Click to hide internal directories.