Add admin panel: visit counter, product editor, screenshots upload
This commit is contained in:
@@ -6,10 +6,23 @@ type Product struct {
|
||||
ID int
|
||||
Name string
|
||||
Description string
|
||||
Details string
|
||||
Price float64
|
||||
ImageURL string
|
||||
Category string
|
||||
IsActive bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
Images []ProductImage
|
||||
}
|
||||
|
||||
type ProductImage struct {
|
||||
ID int
|
||||
ProductID int
|
||||
FilePath string
|
||||
IsPrimary bool
|
||||
SortOrder int
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
@@ -17,3 +30,8 @@ type Category struct {
|
||||
Slug string
|
||||
Count int
|
||||
}
|
||||
|
||||
type SiteStats struct {
|
||||
TotalVisits int64
|
||||
TodayVisits int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user