feat: google proto
This commit is contained in:
@@ -4,10 +4,21 @@ package product;
|
||||
option go_package="./product";
|
||||
|
||||
import "buf/validate/validate.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
service Product {
|
||||
rpc Add(AddReq) returns (AddResp);
|
||||
rpc Edit(EditReq) returns (EditResp);
|
||||
rpc Add(AddReq) returns (AddResp) {
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/product"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc Edit(EditReq) returns (EditResp) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message AddReq {
|
||||
|
||||
Reference in New Issue
Block a user