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