shutterstock/internal/model/model.go
2024-10-13 21:31:38 +03:00

34 lines
974 B
Go

package model
type ShutterStockParams string
const (
AspectRatio ShutterStockParams = "aspect_ratio"
AspectRatioMax ShutterStockParams = "aspect_ratio_max"
AspectRatioMin ShutterStockParams = "aspect_ratio_min"
WidthFrom ShutterStockParams = "width_from"
WidthTo ShutterStockParams = "width_to"
Query ShutterStockParams = "query"
HeightFrom ShutterStockParams = "height_from"
HeightTo ShutterStockParams = "height_to"
)
type ImgSearchReq struct {
AspectRatio float64 `json:"aspect_ratio"`
AspectRatioMax float64 `json:"aspect_ratio_max"`
AspectRatioMin float64 `json:"aspect_ratio_min"`
WidthFrom int `json:"width_from"`
WidthTo int `json:"width_to"`
HeightFrom int `json:"height_from"`
HeightTo int `json:"height_to"`
Query string `json:"query"`
}
type ImgSearchResp struct {
Data []ImgSearchData `json:"data"`
}
type ImgSearchData struct {
ID string `json:"id"`
}