Merge branch 'feature/mhw-v1.01' of gitee.com:fusenpack/fusenapi into feature/mhw-v1.01
This commit is contained in:
commit
71b6aaf014
|
@ -24,6 +24,7 @@ func (p *FsProductPriceModel) GetSimplePriceListByProductIds(ctx context.Context
|
|||
return
|
||||
}
|
||||
func (p *FsProductPriceModel) GetPriceListByProductIdsSizeIds(ctx context.Context, productIds, sizeIds []int64) (resp []FsProductPrice, err error) {
|
||||
|
||||
if len(sizeIds) == 0 || len(productIds) == 0 {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ func (s *FsShoppingCartModel) Create(ctx context.Context, data *FsShoppingCart)
|
|||
}
|
||||
|
||||
// 删除
|
||||
func (s *FsShoppingCartModel) Delete(ctx context.Context, id, userId int64) error {
|
||||
func (s *FsShoppingCartModel) Delete(ctx context.Context, userId, id int64) error {
|
||||
return s.db.WithContext(ctx).Model(&FsShoppingCart{}).Where("user_id = ? and id = ?", userId, id).Delete(&FsShoppingCart{}).Error
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user