<filename>src/shopping/shopping-product/src/main/java/cn/parzulpan/shopping/product/service/AttrService.java
package cn.parzulpan.shopping.product.service;

import cn.parzulpan.shopping.product.vo.AttrGroupRelationVo;
import cn.parzulpan.shopping.product.vo.AttrRespVo;
import cn.parzulpan.shopping.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.parzulpan.common.utils.PageUtils;
import cn.parzulpan.shopping.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author parzulpan
 * @email <EMAIL>
 * @date 2021-01-04 17:38:46
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    /**
     * 在指定的所有属性集合里面，挑出检索属性
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

