| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.yeshi.buwan.dao.VideoResourceDao; |
| | | import com.yeshi.buwan.dao.juhe.SoHuVideoDao; |
| | | import com.yeshi.buwan.dao.juhe.sohu.SoHuVideoDao; |
| | | import com.yeshi.buwan.domain.AdminInfo; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.domain.VideoResource; |
| | |
| | | |
| | | @Component |
| | | public class SoHuUtil { |
| | | |
| | | |
| | | public final static int RESOURCE_ID = 14; |
| | | public final static String RESOURCE_NAME = "搜狐"; |
| | | |
| | | static Logger logger = Logger.getLogger(SoHuUtil.class); |
| | | @Resource |
| | | private SoHuService soHuService; |
| | |
| | | @Resource |
| | | private VideoResourceDao videoResourceDao; |
| | | |
| | | public SoHuVideoDao getSoHuVideoDao() { |
| | | return soHuVideoDao; |
| | | } |
| | | |
| | | public void setSoHuVideoDao(SoHuVideoDao soHuVideoDao) { |
| | | this.soHuVideoDao = soHuVideoDao; |
| | | } |
| | | |
| | | public SoHuService getSoHuService() { |
| | | return soHuService; |
| | | } |
| | | |
| | | public void setSoHuService(SoHuService soHuService) { |
| | | this.soHuService = soHuService; |
| | | } |
| | | |
| | | public static List<RootCategory> getCategory() { |
| | | List<RootCategory> list = SoHuApi.rootCategoryList(); |