购物车服务

master
shenzhuan 2 years ago
parent 079a64ec7a
commit eedeffc36d

@ -2,6 +2,5 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -58,14 +58,13 @@ func main() {
reqDetail := &proto.ProductDetailReq{
Id: int32(productId),
}
//
respDetail, err := clientA.ShowProductDetail(context.TODO(), reqDetail)
req.ProductName = respDetail.ProductDetail[0].Name
req.ProductMainPicture = respDetail.ProductDetail[0].MainPicture
log.Println(" /ProductDetailReq get :", req)
//SKU
//添加购物车 远程调用服务log.Println(" /ProductDetailReq get :", req)
// //SKU
// //添加购物车 远程调用服务
//添加购物车 远程调用服务
resp, err := client.AddCart(context.TODO(), req)
log.Println(" /increase :", resp)
//根据响应做输出

@ -1,6 +0,0 @@
package main
/*
@Auth:ShenZ
@Description:
*/
Loading…
Cancel
Save