使用 gRPC 实现购物车服务

This commit is contained in:
administrator committed 2024-07-10 22:41:32 +08:00
1 parent 49f2796cc2
commit c192d209fd
27 files changed
+368 -53

No files matched your search

@@ -1,13 +1,20 @@
syntax = "proto3";
option csharp_namespace = "HelloShop.BasketService";
option csharp_namespace = "HelloShop.BasketService.Protos";
import "google/api/annotations.proto";
package greet;
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply);
rpc SayHello (HelloRequest) returns (HelloReply){
option (google.api.http) = {
post: "/api/greet"
body: "*"
};
}
}
// The request message containing the user's name.