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 }