Added APIPictureList struct

master
Alex 2021-08-19 19:54:34 +02:00
parent d26e092905
commit c05d37d89e
1 changed files with 19 additions and 1 deletions

View File

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