From 104762309173563765e0150bab15af2fc8a1882f Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 20:35:08 +0900 Subject: [PATCH] initial commits --- ent/status.go | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ent/status.go diff --git a/ent/status.go b/ent/status.go new file mode 100644 index 0000000..e180d23 --- /dev/null +++ b/ent/status.go @@ -0,0 +1,42 @@ +package ent + +import ( + "encoding/json" + + "sourcecode.social/reiver/go-jsonint" + "sourcecode.social/reiver/go-opt" + "sourcecode.social/reiver/go-nul" +) + +type Status struct { + ID opt.Optional[string] `json:"id"` + URL nul.Nullable[string] `json:"uri"` + CreatedAt opt.Optional[string] `json:"created_at"` + Account Account `json:"account"` + Content opt.Optional[string] `json:"content"` + Visibility opt.Optional[string] `json:"visibility"` + Sensitive opt.Optional[bool] `json:"sensitive"` + SpoilerText opt.Optional[string] `json:"spoiler_text"` + MediaAttachments []MediaAttachment `json:"media_attachments"` + Application nul.Nullable[Application] `json:"application"` + Mentions []Mention `json:"mentions"` + Tags []Tag `json:"tags"` + Emojis []CustomEmoji `json:"emojis"` + ReblogsCount opt.Optional[jsonint.Int] `json:"reblogs_count"` + FavouritesCount opt.Optional[jsonint.Int] `json:"favourites_count"` + RepliesCount opt.Optional[jsonint.Int] `json:"replies_count"` + InReplyToID nul.Nullable[string] `json:"in_reply_to_id"` + InReplyToAccountID nul.Nullable[string] `json:"in_reply_to_account_id"` + Reblog json.RawMessage `json:"reblog"` + Poll nul.Nullable[Poll] `json:"poll"` + Card nul.Nullable[PreviewCard] `json:"card"` + Language nul.Nullable[string] `json:"language"` + Text nul.Nullable[string] `json:"text"` + EditedAt nul.Nullable[string] `json:"edited_at"` + Favourited opt.Optional[bool] `json:"favourited"` + Reblogged opt.Optional[bool] `json:"reblogged"` + Muted opt.Optional[bool] `json:"muted"` + Bookmarked opt.Optional[bool] `json:"bookmarked"` + Pinned opt.Optional[bool] `json:"pinned"` + Filtered json.RawMessage `json:"filtered"` +}