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:
@@ -34,6 +34,22 @@ func (e *ErrPhotoNotProvided) Error() string {
|
||||
return fmt.Sprintf("referenced photo %s which was not provided", e.Reference)
|
||||
}
|
||||
|
||||
type EErrPhotoThumbnailNotProvided *ErrPhotoThumbnailNotProvided
|
||||
|
||||
type ErrPhotoThumbnailNotProvided struct {
|
||||
Reference string
|
||||
}
|
||||
|
||||
func NewErrPhotoThumbnailNotProvided(reference string) *ErrPhotoThumbnailNotProvided {
|
||||
return &ErrPhotoThumbnailNotProvided{
|
||||
Reference: reference,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *ErrPhotoThumbnailNotProvided) Error() string {
|
||||
return fmt.Sprintf("referenced photo %s the thumbnail of which was not provided", e.Reference)
|
||||
}
|
||||
|
||||
type ErrFeatureForPhotoNotExists struct {
|
||||
PhotoFeatureReference int64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user