@@ -3,6 +3,7 @@ syntax = "proto3";
|
||||
package crabs.crm;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/httpbody.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
|
||||
option go_package = "pkg/proto";
|
||||
@@ -42,6 +43,11 @@ service CRM {
|
||||
body: "items"
|
||||
};
|
||||
}
|
||||
rpc GetImage(GetImageReq) returns (google.api.HttpBody) {
|
||||
option (google.api.http) = {
|
||||
get: "/images/{name}"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message GetCatalogReq {}
|
||||
@@ -153,3 +159,7 @@ message CardReq {
|
||||
message CardRsp {
|
||||
repeated CardItem items = 1;
|
||||
}
|
||||
|
||||
message GetImageReq {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user