2018-12-10 19:42:28 +01:00
|
|
|
package models
|
|
|
|
|
2018-12-11 20:42:44 +01:00
|
|
|
type Post struct {
|
2018-12-22 20:04:32 +01:00
|
|
|
Id string
|
|
|
|
Title string
|
|
|
|
ContentHtml string
|
|
|
|
ContentMd string
|
2018-12-10 19:42:28 +01:00
|
|
|
}
|
|
|
|
|
2018-12-22 20:04:32 +01:00
|
|
|
func NewPost(id, title, contentHtml, contentMd string) *Post {
|
|
|
|
return &Post{id, title, contentHtml, contentMd}
|
2018-12-10 19:42:28 +01:00
|
|
|
}
|