From 2dfad998343f51944fa349176ef195cf522c464f Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 18:38:31 +0900 Subject: [PATCH] initial commits --- ent/previewcard.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ent/previewcard.go diff --git a/ent/previewcard.go b/ent/previewcard.go new file mode 100644 index 0000000..21e58dc --- /dev/null +++ b/ent/previewcard.go @@ -0,0 +1,24 @@ +package ent + +import ( + "sourcecode.social/reiver/go-opt" + "sourcecode.social/reiver/go-nul" +) + +type PreviewCard struct { + URL opt.Optional[string] `json:"url"` + Title opt.Optional[string] `json:"title"` + Description opt.Optional[string] `json:"description"` + Type opt.Optional[string] `json:"type"` + AuthorName opt.Optional[string] `json:"author_name"` + AuthorURL opt.Optional[string] `json:"author_url"` + ProviderName opt.Optional[string] `json:"provider_name"` + ProviderURL opt.Optional[string] `json:"provider_url"` + HTML opt.Optional[string] `json:"html"` + Width opt.Optional[string] `json:"width"` + Height opt.Optional[string] `json:"height"` + Image nul.Nullable[string] `json:"image"` + EmbedURL opt.Optional[string] `json:"embed_url"` + BlurHash nul.Nullable[string] `json:"blurhash"` + History []History `json:"history"` +}