22 lines
592 B
Go
22 lines
592 B
Go
package response
|
|
|
|
type Product struct {
|
|
ID int64 `json:"id"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Price float64 `json:"price"`
|
|
Status string `json:"status"`
|
|
Description string `json:"description"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
Image string `json:"image"`
|
|
}
|
|
|
|
type ProductList struct {
|
|
Products []Product `json:"products"`
|
|
Total int64 `json:"total"`
|
|
Limit int `json:"limit"`
|
|
Offset int `json:"offset"`
|
|
}
|