diff options
Diffstat (limited to 'src/post/post_model.go')
| -rw-r--r-- | src/post/post_model.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/post/post_model.go b/src/post/post_model.go new file mode 100644 index 0000000..fc5dc2a --- /dev/null +++ b/src/post/post_model.go @@ -0,0 +1,15 @@ +package post + +import ( + "time" + + "gitlab.com/alexkavon/newsstand/src/user" +) + +type Post struct { + Title string `json:"title"` + Body string `json:"body"` + User user.User `json:"user"` + Created time.Time `json:"created"` + Updated time.Time `json:"updated"` +} |
