diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-14 01:00:21 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-14 01:00:21 -0500 |
| commit | 60f4a3e21f186d7bbc6e1f3239dc2dc06fa1ffac (patch) | |
| tree | 180f17411afd50958e601e4dc1bafca70702d073 /src/post/post_model.go | |
| parent | 699e1edf05207f906583659fb250269ad5ec1f36 (diff) | |
new packages for users, posts, server
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"` +} |
