add a couple post endpoints + /timelines/home
This commit is contained in:
parent
dd72a1f4c1
commit
9f052dc9ef
24 changed files with 462 additions and 32 deletions
|
@ -2,10 +2,20 @@ package database
|
|||
|
||||
import "github.com/oklog/ulid/v2"
|
||||
|
||||
type PostVisibility string
|
||||
|
||||
const (
|
||||
PublicVisibility PostVisibility = "public"
|
||||
UnlistedVisibility PostVisibility = "unlisted"
|
||||
FollowersVisibility PostVisibility = "followers"
|
||||
DirectVisibility PostVisibility = "direct"
|
||||
)
|
||||
|
||||
// Post is a single post.
|
||||
type Post struct {
|
||||
ID ulid.ULID
|
||||
BlogID ulid.ULID
|
||||
Content *string
|
||||
Source *string
|
||||
ID ulid.ULID
|
||||
BlogID ulid.ULID
|
||||
Content *string
|
||||
Source *string
|
||||
Visibility PostVisibility
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue