package com.yeshi.buwan.controller.api; import com.yeshi.buwan.videos.iqiyi.util.IqiyiUtil; import com.yeshi.buwan.videos.sohu.SoHuUtil; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.io.PrintWriter; @Controller @RequestMapping("/videoparser") public class VideoParserController { @Resource private IqiyiUtil iqiyiUtil; @Resource private SoHuUtil soHuUtil; @RequestMapping(value = "/iqiyi", method = RequestMethod.GET) public void iqiyi(HttpServletRequest request, PrintWriter out) { iqiyiUtil.updateAll(""); } @RequestMapping(value = "/soHu", method = RequestMethod.GET) public void soHu(HttpServletRequest request, PrintWriter out) { soHuUtil.parseAll(); } @RequestMapping(value = "/updateHomeVideoPic", method = RequestMethod.GET) public void updateHomeVideoPic(HttpServletRequest request, PrintWriter out) { } }