From c05d37d89e19d3677f31da62c8bc20a1e899bc47 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 19 Aug 2021 19:54:34 +0200 Subject: [PATCH] Added APIPictureList struct --- modules/structs/picture.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/structs/picture.go b/modules/structs/picture.go index 4f0c49d..5350dda 100644 --- a/modules/structs/picture.go +++ b/modules/structs/picture.go @@ -1,17 +1,35 @@ package structs -import "time" +import ( + "time" +) type Picture struct { UserId string PictureId string + Url string Likes int Location string Description string CreatedAt time.Time } +// user profile view pictures type APIPicture struct { UserId string PictureId string + Url string +} + +// home screen +type APIPictureList struct { + UserId string + PictureId string + Url string + Likes int + Location string + Description string + Liked int + AvatarUrl string + CreatedAt time.Time }