From d04f2c475f4fea606423eda6f74a07c761da1c30 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 21:15:55 +0900 Subject: [PATCH] initial commits --- ent/previewcard.go | 2 +- ent/{history.go => previewcardhistory.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename ent/{history.go => previewcardhistory.go} (85%) diff --git a/ent/previewcard.go b/ent/previewcard.go index ab45dfd..f82445e 100644 --- a/ent/previewcard.go +++ b/ent/previewcard.go @@ -22,5 +22,5 @@ type PreviewCard struct { Image nul.Nullable[string] `json:"image"` EmbedURL opt.Optional[string] `json:"embed_url"` BlurHash nul.Nullable[string] `json:"blurhash"` - History []History `json:"history"` + History []PreviewCardHistory `json:"history"` } diff --git a/ent/history.go b/ent/previewcardhistory.go similarity index 85% rename from ent/history.go rename to ent/previewcardhistory.go index 0e4c786..dbd8b02 100644 --- a/ent/history.go +++ b/ent/previewcardhistory.go @@ -4,7 +4,7 @@ import ( "sourcecode.social/reiver/go-opt" ) -type History struct { +type PreviewCardHistory struct { Day opt.Optional[string] `json:"day"` Accounts opt.Optional[string] `json:"accounts"` Uses opt.Optional[string] `json:"uses"`