This commit is contained in:
laodaming 2023-09-13 17:27:16 +08:00
parent 0e4c37918a
commit a8b85fad02
2 changed files with 35 additions and 34 deletions

View File

@ -1,5 +1,5 @@
Name: product Name: product
Host: localhost Host: 0.0.0.0
Port: 9908 Port: 9908
ReplicaId: 55 ReplicaId: 55
Timeout: 15000 #服务超时时间 Timeout: 15000 #服务超时时间

View File

@ -22,6 +22,7 @@ service shopping-cart {
@handler GetCartsHandler @handler GetCartsHandler
get /api/shopping-cart/get_carts(GetCartsReq) returns (response); get /api/shopping-cart/get_carts(GetCartsReq) returns (response);
} }
//加入购物车 //加入购物车
type AddToCartReq { type AddToCartReq {
ProductId int64 `json:"product_id"` //产品id ProductId int64 `json:"product_id"` //产品id