content page
This commit is contained in:
parent
fd2877da9e
commit
36b2c56987
14 changed files with 590 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue