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