mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
* photo metedata provided with downloaded data * data download recognizes application/json and application/zip accepted types and serves bare json and zip with photos respectively * thumbnail handling and storage
This commit is contained in:
+10
-2
@@ -69,8 +69,9 @@ type HandshakeResponse struct {
|
||||
}
|
||||
|
||||
type Data struct {
|
||||
Users []User `json:"users"`
|
||||
Features []Feature `json:"features"`
|
||||
Users []User `json:"users"`
|
||||
Features []Feature `json:"features"`
|
||||
PhotoMetadata map[string]PhotoMetadata `json:"photo_metadata,omitempty"`
|
||||
}
|
||||
|
||||
type Photo struct {
|
||||
@@ -78,3 +79,10 @@ type Photo struct {
|
||||
File io.ReadCloser
|
||||
Size int64
|
||||
}
|
||||
|
||||
type PhotoMetadata struct {
|
||||
ContentType string `json:"content_type"`
|
||||
Size int64 `json:"size"`
|
||||
ID FeaturePhotoID `json:"id"`
|
||||
ThumbnailFilename string `json:"thumbnail_filename"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user