You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
622 B
24 lines
622 B
|
3 weeks ago
|
package com.project.logistics.controller;
|
||
|
|
|
||
|
|
|
||
|
|
import com.project.base.domain.result.Result;
|
||
|
|
import com.project.logistics.domain.scheduler.WebDavScannerJob;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.*;
|
||
|
|
|
||
|
|
@RestController
|
||
|
|
@Slf4j
|
||
|
|
@RequestMapping("/api/")
|
||
|
|
public class WenDavScammerController {
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private WebDavScannerJob webDavScannerJob;
|
||
|
|
|
||
|
|
@GetMapping("/doScan")
|
||
|
|
public Result<String> receiveOrderState() {
|
||
|
|
webDavScannerJob.doScanWork();
|
||
|
|
return Result.success("扫描成功");
|
||
|
|
}
|
||
|
|
}
|