package com.kxs.product.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kxs.product.api.model.KxsShopGoods;
import com.kxs.product.api.vo.kxsapp.shop.ShopGoodsListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商城商品表(KxsShopGoods)表数据库访问层
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@Mapper
public interface KxsShopGoodsMapper extends BaseMapper<KxsShopGoods> {

    /**
     * kxs app 按页获取商品列表
     *
     * @param page  页面
     * @param colId 分类ID
     * @return {@link IPage}<{@link ShopGoodsListVO}>
     */
    IPage<ShopGoodsListVO> getByPage(Page<ShopGoodsListVO> page, @Param("colId") Integer colId);
}

