fix
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ type DiyInfo struct {
|
||||
}
|
||||
|
||||
type DeleteCartReq struct {
|
||||
Id int64 `json:"id"` //购物车id
|
||||
IdList []int64 `json:"id"` //购物车id
|
||||
}
|
||||
|
||||
type GetCartsReq struct {
|
||||
|
||||
Reference in New Issue
Block a user