2022-01-02 22:11:00 +00:00
|
|
|
package models
|
|
|
|
|
2022-01-16 18:39:54 +00:00
|
|
|
import "time"
|
|
|
|
|
2022-01-02 22:11:00 +00:00
|
|
|
type Product struct {
|
2022-01-16 18:39:54 +00:00
|
|
|
Name string `json:"name"`
|
2022-07-02 14:27:52 +00:00
|
|
|
Description string `json:"description"`
|
2022-01-16 18:39:54 +00:00
|
|
|
URL string `json:"url"`
|
|
|
|
ImageURL string `json:"image_url"`
|
|
|
|
InStock bool `json:"in_stock"`
|
|
|
|
PriceText string `json:"price_text"`
|
|
|
|
Price float64 `json:"price"`
|
|
|
|
ReleaseDate *time.Time `json:"release_date"`
|
2022-01-02 22:11:00 +00:00
|
|
|
}
|