mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Add GET bans
This commit is contained in:
parent
77e9f405c6
commit
4f391f0b65
7 changed files with 117 additions and 10 deletions
|
@ -27,6 +27,7 @@ type Photo struct { //todo: move to structures
|
|||
Likes int64 `json:"likes"`
|
||||
Comments int64 `json:"comments"`
|
||||
Date string `json:"date"`
|
||||
Liked bool `json:"liked"`
|
||||
}
|
||||
|
||||
type UserPhoto struct {
|
||||
|
@ -34,12 +35,13 @@ type UserPhoto struct {
|
|||
Likes int64 `json:"likes"`
|
||||
Comments int64 `json:"comments"`
|
||||
Date string `json:"date"`
|
||||
Liked bool `json:"liked"`
|
||||
}
|
||||
|
||||
type UserProfile struct {
|
||||
UID string `json:"user_id"`
|
||||
Name string `json:"name"`
|
||||
Following int64 `json:"following"`
|
||||
Followers int64 `json:"followers"`
|
||||
Photos *[]UserPhoto `json:"photos"` //todo: check json names
|
||||
UID string `json:"user_id"`
|
||||
Name string `json:"name"`
|
||||
Following int64 `json:"following"`
|
||||
Followers int64 `json:"followers"`
|
||||
Photos int64 `json:"photos"` //todo: check json names
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue