mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -23,6 +23,12 @@ func (t *ImageService) Convert(request *ConvertRequest) (*ConvertResponse, error
|
||||
return rsp, t.client.Call("image", "Convert", request, rsp)
|
||||
}
|
||||
|
||||
// Delete an image previously uploaded.
|
||||
func (t *ImageService) Delete(request *DeleteRequest) (*DeleteResponse, error) {
|
||||
rsp := &DeleteResponse{}
|
||||
return rsp, t.client.Call("image", "Delete", request, rsp)
|
||||
}
|
||||
|
||||
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
||||
// If one of width or height is 0, the image aspect ratio is preserved.
|
||||
// Optional cropping.
|
||||
@@ -66,6 +72,14 @@ type CropOptions struct {
|
||||
Width int32 `json:"width"`
|
||||
}
|
||||
|
||||
type DeleteRequest struct {
|
||||
// url of the image to delete e.g. https://cdn.m3ocontent.com/micro/images/micro/41e23b39-48dd-42b6-9738-79a313414bb8/cat.jpeg
|
||||
Url string `json:"url"`
|
||||
}
|
||||
|
||||
type DeleteResponse struct {
|
||||
}
|
||||
|
||||
type Point struct {
|
||||
X int32 `json:"x"`
|
||||
Y int32 `json:"y"`
|
||||
|
||||
Reference in New Issue
Block a user