package com.tzld.supply.controller; import com.tzld.supply.common.base.CommonResponse; import com.tzld.supply.job.ContentScreenJob; import com.tzld.supply.job.SpiderJob; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/job") public class XxlJobController { @Autowired private SpiderJob spiderJob; @Autowired private ContentScreenJob contentScreenJob; @GetMapping("/spiderTaskJob") public CommonResponse spiderTaskJob() { spiderJob.spiderTaskJob(null); return CommonResponse.success(); } @GetMapping("/searchContentDetailJob") public CommonResponse searchContentDetailJob() { spiderJob.searchContentDetailJob(null); return CommonResponse.success(); } @GetMapping("/contentRoughScreenJob") public CommonResponse contentRoughScreenJob() { contentScreenJob.contentRoughScreenJob(null); return CommonResponse.success(); } @GetMapping("/contentPrecisionScreenJob") public CommonResponse contentPrecisionScreenJob() { contentScreenJob.contentPrecisionScreenJob(null); return CommonResponse.success(); } }