WASAPhoto/service/structures/api-structures.go

46 lines
1 KiB
Go
Raw Normal View History

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"`
}
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"`
}
type Photo struct { //todo: move to structures
UID string `json:"user_id"`
ID int64 `json:"photo_id"`
Likes int64 `json:"likes"`
Comments int64 `json:"comments"`
Date string `json:"date"`
}
type UserPhoto struct {
ID int64 `json:"photo_id"`
Likes int64 `json:"likes"`
Comments int64 `json:"comments"`
Date string `json:"date"`
}
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
}