hugo-cms/models/posts.go

21 lines
303 B
Go
Raw Normal View History

2025-01-27 03:23:54 +00:00
package models
import "time"
type PostState string
const (
PostStateDraft PostState = "draft"
PostStatePublished PostState = "published"
)
type Post struct {
ID int64
SiteID int64
Title string
Body string
State PostState
PostDate time.Time
CreatedAt time.Time
}