image storage contract added
This commit is contained in:
parent
3298602a23
commit
dae627f4ad
3 changed files with 448 additions and 0 deletions
27
proto/imageStorage.proto
Normal file
27
proto/imageStorage.proto
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
syntax="proto3";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package imageStorage;
|
||||
option go_package = "imageStorage/pkg/proto/imageStorage";
|
||||
|
||||
message UploadMerchImageRequest{
|
||||
bytes imageData = 1;
|
||||
string userUuid = 2;
|
||||
string merchUuid = 3;
|
||||
}
|
||||
|
||||
message UploadMerchImageResponse {
|
||||
string fullImage = 1;
|
||||
string thumbnail = 2;
|
||||
}
|
||||
|
||||
message DeleteImageRequest {
|
||||
string userUuid = 1;
|
||||
string merchUuid = 2;
|
||||
}
|
||||
|
||||
service ImageStorage {
|
||||
rpc UploadImage(UploadMerchImageRequest) returns (UploadMerchImageResponse);
|
||||
rpc DeleteImage(DeleteImageRequest) returns (google.protobuf.Empty);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue