2022-11-18 17:18:46 +01:00
|
|
|
package structures
|
|
|
|
|
|
|
|
type UserDetails struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
2022-11-18 18:58:12 +01:00
|
|
|
|
|
|
|
type UIDName struct {
|
|
|
|
UID string `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
2022-11-20 19:21:26 +01:00
|
|
|
|
2022-12-10 01:25:38 +01:00
|
|
|
type SearchResult struct {
|
2022-12-12 12:37:30 +01:00
|
|
|
UID string `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Followed bool `json:"followed"`
|
|
|
|
Banned bool `json:"banned"`
|
2022-12-10 01:25:38 +01:00
|
|
|
}
|
|
|
|
|
2022-11-20 19:21:26 +01:00
|
|
|
type GenericResponse struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Comment struct {
|
|
|
|
CommentID string `json:"comment_id"`
|
|
|
|
UID string `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Comment string `json:"comment"`
|
|
|
|
Date string `json:"date"`
|
|
|
|
}
|
2022-11-21 19:44:50 +01:00
|
|
|
|
2022-11-22 23:41:52 +01:00
|
|
|
type Photo struct {
|
2022-11-21 19:44:50 +01:00
|
|
|
UID string `json:"user_id"`
|
2022-12-09 03:53:16 +01:00
|
|
|
Username string `json:"name"`
|
2022-11-21 19:44:50 +01:00
|
|
|
ID int64 `json:"photo_id"`
|
|
|
|
Likes int64 `json:"likes"`
|
|
|
|
Comments int64 `json:"comments"`
|
|
|
|
Date string `json:"date"`
|
2022-11-22 16:43:46 +01:00
|
|
|
Liked bool `json:"liked"`
|
2022-11-21 19:44:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type UserPhoto struct {
|
|
|
|
ID int64 `json:"photo_id"`
|
|
|
|
Likes int64 `json:"likes"`
|
|
|
|
Comments int64 `json:"comments"`
|
|
|
|
Date string `json:"date"`
|
2022-11-22 16:43:46 +01:00
|
|
|
Liked bool `json:"liked"`
|
2022-11-21 19:44:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type UserProfile struct {
|
2022-11-22 16:43:46 +01:00
|
|
|
UID string `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Following int64 `json:"following"`
|
|
|
|
Followers int64 `json:"followers"`
|
2022-11-22 17:48:15 +01:00
|
|
|
Followed bool `json:"followed"`
|
2022-12-12 12:37:30 +01:00
|
|
|
Banned bool `json:"banned"`
|
2022-11-22 23:41:52 +01:00
|
|
|
Photos int64 `json:"photos"`
|
2022-11-21 19:44:50 +01:00
|
|
|
}
|