| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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<Void> spiderTaskJob() {
- spiderJob.spiderTaskJob(null);
- return CommonResponse.success();
- }
- @GetMapping("/searchContentDetailJob")
- public CommonResponse<Void> searchContentDetailJob() {
- spiderJob.searchContentDetailJob(null);
- return CommonResponse.success();
- }
- @GetMapping("/contentRoughScreenJob")
- public CommonResponse<Void> contentRoughScreenJob() {
- contentScreenJob.contentRoughScreenJob(null);
- return CommonResponse.success();
- }
- @GetMapping("/contentPrecisionScreenJob")
- public CommonResponse<Void> contentPrecisionScreenJob() {
- contentScreenJob.contentPrecisionScreenJob(null);
- return CommonResponse.success();
- }
- }
|