content page

This commit is contained in:
Daniel Noulet 2026-09-19 15:11:12 +02:00
parent fd2877da9e
commit 36b2c56987
14 changed files with 590 additions and 20 deletions

View file

@ -28,10 +28,19 @@ type Content struct {
Slug, Title, Summary, Body string
Status string
Published bool
CategoryID uint
Category string
Badges []string
CreatedAt, UpdatedAt time.Time
CreatedBy, UpdatedBy uint
}
type Category struct {
ID uint
Slug string
Name string
}
type ContentHistory struct {
ID uint
ContentID uint