package com.cpop.mall.business.service;

import com.cpop.mall.business.bo.ShoppingCartBo;
import com.cpop.mall.business.bo.ShoppingCartPageBo;
import com.cpop.mall.business.vo.MiniShoppingCartPageVo;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.cpop.mall.business.entity.ShoppingCart;

/**
 * 商城购物车表 服务层。
 *
 * @author DB
 * @since 2023-11-06
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * @descriptions 分页查询小程序-商城-购物车分页
     * @author DB
     * @date 2023/11/06 14:02
     * @param bo 请求参数
     * @return: com.mybatisflex.core.paginate.Page<com.cpop.mall.business.vo.MiniShoppingCartPageVo>
     */
    Page<MiniShoppingCartPageVo> getMiniShoppingCartPage(ShoppingCartPageBo bo);

    /**
     * @descriptions 小程序-商城-购物车添加商品
     * @author DB
     * @date 2023/11/06 14:17
     * @param bo 请求参数
     * @return: void
     */
    void insertShoppingCart(ShoppingCartBo bo);
}
