feat: google proto

This commit is contained in:
zzw
2026-08-06 17:00:28 +08:00
parent 1d375324f3
commit beaf8b911a
6 changed files with 430 additions and 14 deletions
+13 -2
View File
@@ -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 {