25 lines
594 B
Go
25 lines
594 B
Go
package response
|
|
|
|
type Product struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Price float64 `json:"price"`
|
|
Status string `json:"status"`
|
|
Description string `json:"description"`
|
|
Image string `json:"image"`
|
|
Category Category `json:"category"`
|
|
}
|
|
|
|
type Category struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ProductList struct {
|
|
Products []Product `json:"products"`
|
|
Total int64 `json:"total"`
|
|
Limit int `json:"limit"`
|
|
Offset int `json:"offset"`
|
|
}
|