Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HTTPResponse struct { Code int `json:"code"` Description string `json:"description"` ExtraText string `json:"extra_text"` }
HTTPResponse el contenido de la JSONHTTPResponse
type JSONHTTPResponse ¶
type JSONHTTPResponse struct {
HTTPResponse HTTPResponse `json:"http_response"`
}
JSONHTTPResponse respuesta JSON que indica el código HTTP y algún comentario extra
type JSONText ¶
type JSONText struct {
Text string `json:"text"`
}
JSONText estructura básica de envio de texto
type Product ¶
type Product struct { Reference string `json:"reference"` Name string `json:"name"` ImagePath string `json:"imagePath"` // `json:"image_path"` ShortDescription string `json:"shortDescription"` // `json:"short_description"` ProductInfo ProductInfo `json:"productInfo"` // `json:"product_info"` }
Product se la definición resumida de un poroducto
type ProductInfo ¶
type ProductInfo struct { Description string `json:"description"` Price float32 `json:"price"` AvailableAmount int `json:"availableAmount"` // `json:"available_amount"` }
ProductInfo son los detalles extra de cada producto
Click to show internal directories.
Click to hide internal directories.