feat: added GetUserFavoritePostsWithPagination

This commit is contained in:
SoXX 2024-05-15 11:18:10 +02:00
parent afaf112c5d
commit 5fb2a1770a

15
pkg/models/api.go Normal file
View File

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