2025-11-15 17:43:23 +00:00
|
|
|
package response
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-27 06:34:26 +00:00
|
|
|
type ProductColorResponse struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
ImagePath *string `json:"image_path"`
|
|
|
|
|
ImageUrl *string `json:"image_url"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-15 17:43:23 +00:00
|
|
|
type ProductsResponse struct {
|
|
|
|
|
ID uint `json:"id"`
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
Variant *string `json:"variant"`
|
2025-11-17 15:44:55 +00:00
|
|
|
Price *string `json:"price"`
|
2025-11-15 17:43:23 +00:00
|
|
|
ThumbnailPath *string `json:"thumbnail_path"`
|
|
|
|
|
ThumbnailUrl *string `json:"thumbnail_url"`
|
2026-01-27 06:34:26 +00:00
|
|
|
Colors []ProductColorResponse `json:"colors"`
|
2026-01-19 15:35:19 +00:00
|
|
|
Status *string `json:"status"`
|
2026-01-20 01:08:14 +00:00
|
|
|
StatusId *int `json:"status_id"`
|
2025-11-15 17:43:23 +00:00
|
|
|
IsActive *bool `json:"is_active"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
|
}
|
|
|
|
|
|