change imageID to name

This commit is contained in:
Asim Aslam
2021-06-03 15:12:34 +01:00
parent b379f1711e
commit 8bd19de959
4 changed files with 86 additions and 89 deletions

View File

@@ -2,7 +2,7 @@ syntax = "proto3";
package image;
option go_package = "github.com/micro/services/images/proto;image";
option go_package = "./proto;image";
service Image {
rpc Upload(UploadRequest) returns (UploadResponse) {}
@@ -19,7 +19,7 @@ message UploadRequest {
// URL of the image to upload
string url = 2;
// Output name of the image including extension, ie. "cat.png"
string imageID = 3;
string name = 3;
}
message UploadResponse {
@@ -58,7 +58,7 @@ message ResizeRequest {
// url of the image to resize
string url = 2;
// output name of the image including extension, ie. "cat.png"
string imageID = 3;
string name = 3;
// make output a URL and not a base64 response
bool outputURL = 4;
int64 width = 5;
@@ -83,7 +83,7 @@ message ConvertRequest {
// url of the image to resize
string url = 2;
// output name of the image including extension, ie. "cat.png"
string imageID = 3;
string name = 3;
// make output a URL and not a base64 response
bool outputURL = 4;
}
@@ -91,4 +91,4 @@ message ConvertRequest {
message ConvertResponse {
string base64 = 1;
string url = 2;
}
}