package com.kxs.product.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kxs.product.api.model.KxsShopGoodsSpec;
import com.kxs.product.api.vo.kxsapp.shop.ShopGoodsSpecVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 商城商品SKU记录表(KxsShopGoodsSpec)表数据库访问层
 *
 * @author 系统
 * @since 2023-12-20 10:09:36
 */
@Mapper
public interface KxsShopGoodsSpecMapper extends BaseMapper<KxsShopGoodsSpec> {

    /**
     * 根据商品ID 获取规格值列表
     *
     * @param goodsId 商品id
     * @return {@link List}<{@link ShopGoodsSpecVO}>
     */
    List<ShopGoodsSpecVO> getGoodsSpecList(Integer goodsId);
}

