From 2af37d47783aac8c650ffd1578e2297b5784c73d Mon Sep 17 00:00:00 2001 From: r Date: Tue, 28 Jan 2020 17:51:00 +0000 Subject: Refactor everything --- model/post.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 model/post.go (limited to 'model/post.go') diff --git a/model/post.go b/model/post.go new file mode 100644 index 0000000..58997f7 --- /dev/null +++ b/model/post.go @@ -0,0 +1,19 @@ +package model + +type PostFormat struct { + Name string + Type string +} + +type PostContext struct { + DefaultVisibility string + ReplyContext *ReplyContext + Formats []PostFormat + DarkMode bool +} + +type ReplyContext struct { + InReplyToID string + InReplyToName string + ReplyContent string +} -- cgit v1.2.3