update
This commit is contained in:
parent
d146541088
commit
5761bf88c6
3 changed files with 1 additions and 659 deletions
|
|
@ -3,7 +3,7 @@ syntax="proto3";
|
|||
import "google/protobuf/empty.proto";
|
||||
|
||||
package imageStorage;
|
||||
option go_package = "imageStorage/";
|
||||
option go_package = "imageStorage/pkg/proto/imageStorage";
|
||||
|
||||
message UploadMerchImageRequest{
|
||||
bytes imageData = 1;
|
||||
|
|
@ -16,23 +16,6 @@ message UploadMerchImageResponse {
|
|||
string thumbnail = 2;
|
||||
}
|
||||
|
||||
enum ImageType {
|
||||
UNKNOWN = 0;
|
||||
FULL = 1;
|
||||
THUMBNAIL = 2;
|
||||
}
|
||||
|
||||
message GetImageRequest {
|
||||
string userUuid = 1;
|
||||
string merchUuid = 2;
|
||||
ImageType imgType = 3;
|
||||
}
|
||||
|
||||
message GetImageResponse{
|
||||
string url = 1;
|
||||
string etag = 2;
|
||||
}
|
||||
|
||||
message DeleteImageRequest {
|
||||
string userUuid = 1;
|
||||
string merchUuid = 2;
|
||||
|
|
@ -40,6 +23,5 @@ message DeleteImageRequest {
|
|||
|
||||
service ImageStorage {
|
||||
rpc UploadImage(UploadMerchImageRequest) returns (UploadMerchImageResponse);
|
||||
rpc GetImage(GetImageRequest) returns (GetImageResponse);
|
||||
rpc DeleteImage(DeleteImageRequest) returns (google.protobuf.Empty);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue