admin
2021-08-27 8fee151ffae0c3818694b7318583814bf92663e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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) {
 
    }
 
}