2 changed files with 61 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||
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("扫描成功"); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue