19 lines
497 B
Java
19 lines
497 B
Java
package com.sunnyfarm.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.sunnyfarm.dto.CartItemDTO;
|
|
import com.sunnyfarm.entity.Cart;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface CartMapper extends BaseMapper<Cart> {
|
|
|
|
/**
|
|
* 获取用户购物车详情(包含商品和商家信息)
|
|
*/
|
|
List<CartItemDTO> getUserCartItems(@Param("userId") Long userId);
|
|
}
|