package com.yeshi.buwan.service.imp.baidu;
|
|
import com.yeshi.buwan.service.inter.baidu.BaiDuCPUService;
|
import com.yeshi.buwan.util.BaiDuCPUUtil;
|
import com.yeshi.buwan.vo.baidu.BaiDuCPUTypeVO;
|
import org.springframework.cache.annotation.Cacheable;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
public class BaiDuCPUServiceImpl implements BaiDuCPUService {
|
|
|
@Cacheable(value = "classCache", key = "'baidu-getNewsTypeList'")
|
@Override
|
public List<BaiDuCPUTypeVO> getNewsTypeListCache() {
|
return BaiDuCPUUtil.getNewsTotalTypes();
|
}
|
|
@Cacheable(value = "classCache", key = "'baidu-getVideoTypeList'")
|
@Override
|
public List<BaiDuCPUTypeVO> getVideoTypeListCache() {
|
return BaiDuCPUUtil.getVideosTotalTypes();
|
}
|
|
@Cacheable(value = "classCache", key = "'baidu-getNewsSafeTypeList'")
|
@Override
|
public List<BaiDuCPUTypeVO> getNewsSafeTypeListCache() {
|
return BaiDuCPUUtil.getNewsSafeTypes();
|
}
|
|
@Cacheable(value = "classCache", key = "'baidu-getVideoSafeTypeList'")
|
@Override
|
public List<BaiDuCPUTypeVO> getVideoSafeTypeListCache() {
|
return BaiDuCPUUtil.getVideoSafeTypes();
|
}
|
}
|