Add admin panel: visit counter, product editor, screenshots upload

This commit is contained in:
shop
2026-06-25 16:59:21 +03:00
parent 6322aee714
commit 08727a1995
21 changed files with 1209 additions and 67 deletions
+18
View File
@@ -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
}