From 5fb2a1770a8eb3981bba0885ae3c372d42404b7c Mon Sep 17 00:00:00 2001 From: SoXX Date: Wed, 15 May 2024 11:18:10 +0200 Subject: [PATCH] feat: added GetUserFavoritePostsWithPagination --- pkg/models/api.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkg/models/api.go diff --git a/pkg/models/api.go b/pkg/models/api.go new file mode 100644 index 0000000..0c2da29 --- /dev/null +++ b/pkg/models/api.go @@ -0,0 +1,15 @@ +package models + +type FavoriteRelations struct { + SourcesID string `json:"sources_id"` + Relations AnthrovePostRelationship `json:"relations"` +} + +type FavoritePost struct { + AnthrovePost AnthrovePost `json:"anthrove_post"` + Relations []FavoriteRelations `json:"relations"` +} + +type FavoriteList struct { + Posts []FavoritePost `json:"posts,omitempty"` +}