31 lines
940 B
Go
31 lines
940 B
Go
package trendyol_models
|
|
|
|
type Category struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Slug string `json:"slug"`
|
|
TrendyolURL string `json:"trendyol_url"`
|
|
LcwURL string `json:"lcw_url"`
|
|
DisplayMode string `json:"display_mode"`
|
|
ImageURL interface{} `json:"image_url"`
|
|
CategoryIconPath interface{} `json:"category_icon_path"`
|
|
ProductLimit int `json:"product_limit"`
|
|
Children []Category
|
|
}
|
|
|
|
type BagistoResponse struct {
|
|
Data []Category
|
|
}
|
|
type CouchCategory struct {
|
|
Rev string `json:"_rev"`
|
|
CreatedAt string `json:"createdAt"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Order string `json:"order"`
|
|
ParentID string `json:"parent_id"`
|
|
SargaID string `json:"sarga_id"`
|
|
Slug string `json:"slug"`
|
|
UpdatedAt string `json:"updatedAt"`
|
|
Weight string `json:"weight"`
|
|
}
|