Added APIPictureList struct
parent
d26e092905
commit
c05d37d89e
|
@ -1,17 +1,35 @@
|
||||||
package structs
|
package structs
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type Picture struct {
|
type Picture struct {
|
||||||
UserId string
|
UserId string
|
||||||
PictureId string
|
PictureId string
|
||||||
|
Url string
|
||||||
Likes int
|
Likes int
|
||||||
Location string
|
Location string
|
||||||
Description string
|
Description string
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// user profile view pictures
|
||||||
type APIPicture struct {
|
type APIPicture struct {
|
||||||
UserId string
|
UserId string
|
||||||
PictureId 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue