admin
2024-04-26 5e7b0ed4a154ad067cbcf4aa1a1c7cce32f9864c
fanli/src/main/java/com/yeshi/fanli/service/inter/clazz/GoodsSubClassLabelService.java
@@ -1,80 +1,80 @@
package com.yeshi.fanli.service.inter.clazz;
import java.util.List;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabel;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabelMap;
import com.yeshi.fanli.exception.goods.GoodsClassException;
import com.yeshi.fanli.vo.goods.GoodsSubClassLabelVO;
/**
 * 二级分类的标签服务
 *
 * @author Administrator
 *
 */
public interface GoodsSubClassLabelService {
   /**
    * 添加二级分类标签
    *
    * @param label
    * @throws GoodsClassException
    */
   public void addSubClassLabel(GoodsSubClassLabel label) throws GoodsClassException;
   /**
    * 更新
    *
    * @param label
    */
   public void updateSubClassLabel(GoodsSubClassLabel label);
   /**
    * 添加二级分类标签映射
    *
    * @param map
    * @throws GoodsClassException
    */
   public void addSubClassLabelMap(GoodsSubClassLabelMap map) throws GoodsClassException;
   /**
    *
    * 根据主分类ID获取标签
    *
    * @param classId-主分类ID
    * @return
    */
   public List<GoodsSubClassLabel> listLabelByClassId(Long classId);
   /**
    * 根据分类标签ID获取映射关系列表
    *
    * @param labelId
    * @return
    */
   public List<GoodsSubClassLabelMap> listMapByLabelId(Long labelId);
   /**
    * 删除标签
    *
    * @param labelId
    */
   public void deleteLabel(Long labelId);
   /**
    * 查询映射(通过子分类ID查询)
    *
    * @param subClassId
    * @return
    */
   public GoodsSubClassLabelMap selectBySubClassId(Long subClassId);
   /**
    * 查询二级分类、标签
    * @param classId
    * @return
    */
   public List<GoodsSubClassLabelVO> listSubMapCache(Long classId);
}
package com.yeshi.fanli.service.inter.clazz;
import java.util.List;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabel;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabelMap;
import com.yeshi.fanli.exception.goods.GoodsClassException;
import com.yeshi.fanli.vo.goods.GoodsSubClassLabelVO;
/**
 * 二级分类的标签服务
 *
 * @author Administrator
 *
 */
public interface GoodsSubClassLabelService {
   /**
    * 添加二级分类标签
    *
    * @param label
    * @throws GoodsClassException
    */
   public void addSubClassLabel(GoodsSubClassLabel label) throws GoodsClassException;
   /**
    * 更新
    *
    * @param label
    */
   public void updateSubClassLabel(GoodsSubClassLabel label);
   /**
    * 添加二级分类标签映射
    *
    * @param map
    * @throws GoodsClassException
    */
   public void addSubClassLabelMap(GoodsSubClassLabelMap map) throws GoodsClassException;
   /**
    *
    * 根据主分类ID获取标签
    *
    * @param classId-主分类ID
    * @return
    */
   public List<GoodsSubClassLabel> listLabelByClassId(Long classId);
   /**
    * 根据分类标签ID获取映射关系列表
    *
    * @param labelId
    * @return
    */
   public List<GoodsSubClassLabelMap> listMapByLabelId(Long labelId);
   /**
    * 删除标签
    *
    * @param labelId
    */
   public void deleteLabel(Long labelId);
   /**
    * 查询映射(通过子分类ID查询)
    *
    * @param subClassId
    * @return
    */
   public GoodsSubClassLabelMap selectBySubClassId(Long subClassId);
   /**
    * 查询二级分类、标签
    * @param classId
    * @return
    */
   public List<GoodsSubClassLabelVO> listSubMapCache(Long classId);
}