2025-10-20 22:21:55 +03:00
|
|
|
syntax="proto3";
|
|
|
|
|
|
2025-10-22 21:33:46 +03:00
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
|
2025-10-20 22:21:55 +03:00
|
|
|
package imageStorage;
|
2025-10-25 17:38:40 +03:00
|
|
|
option go_package = "imageStorage/pkg/proto/imageStorage";
|
2025-10-20 22:21:55 +03:00
|
|
|
|
2025-10-22 21:33:46 +03:00
|
|
|
message UploadMerchImageRequest{
|
2025-10-20 22:21:55 +03:00
|
|
|
bytes imageData = 1;
|
2025-10-22 21:33:46 +03:00
|
|
|
string userUuid = 2;
|
|
|
|
|
string merchUuid = 3;
|
2025-10-20 22:21:55 +03:00
|
|
|
}
|
|
|
|
|
|
2025-10-22 21:33:46 +03:00
|
|
|
message UploadMerchImageResponse {
|
2025-10-20 22:21:55 +03:00
|
|
|
string fullImage = 1;
|
|
|
|
|
string thumbnail = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message DeleteImageRequest {
|
|
|
|
|
string userUuid = 1;
|
|
|
|
|
string merchUuid = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
service ImageStorage {
|
2025-10-22 21:33:46 +03:00
|
|
|
rpc UploadImage(UploadMerchImageRequest) returns (UploadMerchImageResponse);
|
|
|
|
|
rpc DeleteImage(DeleteImageRequest) returns (google.protobuf.Empty);
|
2025-10-20 22:21:55 +03:00
|
|
|
}
|