package com.kxs.product.biz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kxs.product.api.model.KxsShopGoods;
import com.kxs.product.api.vo.kxsapp.shop.ShopGoodsDetailVO;
import com.kxs.product.api.vo.kxsapp.shop.ShopGoodsListVO;

/**
 * 商城商品表(KxsShopGoods)表服务接口
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
public interface KxsShopGoodsService extends IService<KxsShopGoods> {

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

    /**
     * kxs app 获取商品详情
     *
     * @param id id
     * @return {@link ShopGoodsDetailVO}
     */
    ShopGoodsDetailVO getByGoodsDetail(Integer id);
}

