feat: added GetUserFavoritePostsWithPagination
This commit is contained in:
parent
afaf112c5d
commit
5fb2a1770a
15
pkg/models/api.go
Normal file
15
pkg/models/api.go
Normal 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"`
|
||||||
|
}
|
Reference in New Issue
Block a user