This commit is contained in:
laodaming 2023-09-26 12:12:50 +08:00
parent 79120e1fd9
commit e23ee6518d

View File

@ -84,7 +84,7 @@ func (l *CalculateProductPriceLogic) CalculateProductPrice(req *types.CalculateP
logx.Error(err) logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to calculate product price ") return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to calculate product price ")
} }
return resp.SetStatus(basic.CodeOK, "success", types.CalculateProductPriceRsp{ return resp.SetStatusWithMessage(basic.CodeOK, "success", types.CalculateProductPriceRsp{
ItemPrice: format.CentitoDollar(itemPrice, 3), ItemPrice: format.CentitoDollar(itemPrice, 3),
TotalPrice: format.CentitoDollarWithNoHalfAdjust(totalPrice, 2), TotalPrice: format.CentitoDollarWithNoHalfAdjust(totalPrice, 2),
PurchaseQuantity: req.PurchaseQuantity, PurchaseQuantity: req.PurchaseQuantity,