From 6cabcf9beb5ad0fd25e5ee454c1f8f160c8a4602 Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 31 May 2024 14:21:51 +0200 Subject: [PATCH] refactor(models): reorganized structs Signed-off-by: SoXX --- pkg/models/{api.go => favorite.go} | 5 ----- pkg/models/tag.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) rename pkg/models/{api.go => favorite.go} (76%) diff --git a/pkg/models/api.go b/pkg/models/favorite.go similarity index 76% rename from pkg/models/api.go rename to pkg/models/favorite.go index a30b955..0c2da29 100644 --- a/pkg/models/api.go +++ b/pkg/models/favorite.go @@ -13,8 +13,3 @@ type FavoritePost struct { type FavoriteList struct { Posts []FavoritePost `json:"posts,omitempty"` } - -type TagsWithFrequency struct { - Frequency int64 `json:"frequency"` - Tags AnthroveTag `json:"tags"` -} diff --git a/pkg/models/tag.go b/pkg/models/tag.go index 49ae70b..ec1ebeb 100644 --- a/pkg/models/tag.go +++ b/pkg/models/tag.go @@ -4,3 +4,8 @@ type AnthroveTag struct { Name string `json:"name" format:"string"` Type string `json:"type" format:"string"` } + +type TagsWithFrequency struct { + Frequency int64 `json:"frequency"` + Tags AnthroveTag `json:"tags"` +}