initial commits

master
Charles Iliya Krempeaux 2023-09-26 18:38:31 +09:00
parent 29c6f3841d
commit 2dfad99834
1 changed files with 24 additions and 0 deletions

24
ent/previewcard.go 100644
View File

@ -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"`
}