package com.yeshi.fanli.service.inter.goods;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import org.springframework.cache.annotation.CacheEvict;
|
import org.springframework.cache.annotation.Cacheable;
|
|
import com.yeshi.fanli.entity.bus.recommend.RecommendSection;
|
import com.yeshi.fanli.entity.bus.recommend.RecommendSectionGoods;
|
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
import com.yeshi.fanli.exception.ExistObjectException;
|
import com.yeshi.fanli.exception.NotExistObjectException;
|
|
public interface RecommendSectionGoodsService {
|
|
public List<RecommendSectionGoods> getRecommendSectionGoods(long id, int counts);
|
|
public List<RecommendSectionGoods> getRecommendSectionGoods(int index,
|
long rsid, String key);
|
|
public int getCount(long rsid, String key);
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void deleteSectionGoods(long[] rsgids);
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void addSectionGoods(long rsid, String tbgid) throws ExistObjectException;
|
|
public RecommendSectionGoods getRecommendSectionGoods(long id);
|
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void updateRecommendSectionGoods(RecommendSectionGoods rsg) throws NotExistObjectException;
|
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void deleteRecommendSectionGoodsByTB(long id);
|
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void addRecommendSectionGoods(RecommendSection recommendSection,
|
TaoBaoGoodsBrief taobao) throws ExistObjectException;
|
@CacheEvict(value="sectionCache",allEntries=true)
|
public void deleteSectionGoodsBySections(long[] rsids);
|
|
|
public Map<Long, List<RecommendSectionGoods>> getAllSectionGoodsMap();
|
|
|
public List<RecommendSectionGoods> getSectionGoods(int count);
|
|
public void deleteRecommendSectionGoodsByTbAuctionId(long auctionId);
|
|
|
}
|