This commit is contained in:
laodaming
2023-11-10 15:24:25 +08:00
parent 360c19a8f5
commit d6a25673bc
33 changed files with 394 additions and 106 deletions

View File

@@ -35,7 +35,7 @@ func (l *DeleteCartLogic) DeleteCart(req *types.DeleteCartReq, userinfo *auth.Us
return resp.SetStatusWithMessage(basic.CodeUnAuth, "please sign in")
}
//删除购物车
if err := l.svcCtx.AllModels.FsShoppingCart.Delete(l.ctx, userinfo.UserId, req.Id); err != nil {
if err := l.svcCtx.AllModels.FsShoppingCart.Delete(l.ctx, userinfo.UserId, req.IdList); err != nil {
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to delete shopping cart")
}