Added entity
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-03-24 13:12:57 +01:00
parent 30d57404f9
commit 6b4c6bb447
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
1 changed files with 15 additions and 0 deletions

15
entity/blogpost.go Normal file
View File

@ -0,0 +1,15 @@
package entity
import "time"
// Blogpost contains the name, date and such of a blogpost
// The actual post itself is hosted somewhere else in the form of an (html) document
// This is put in the path field
type BlogPost struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
Title string `json:"title" bson:"title"`
Author string `json:"author" bson:"author"`
Path string `json:"path" bson:"path"`
PostDate time.Time `json:"time" bson:"time"`
}