|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.openapi.scan.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.openapi.scan.service.impl.ScanService; |
|
|
|
import com.epmet.openapi.scan.support.param.ImgScanParam; |
|
|
|
import com.epmet.openapi.scan.support.param.TextScanParam; |
|
|
@ -32,6 +33,7 @@ public class ScanController { |
|
|
|
*/ |
|
|
|
@RequestMapping("imgSyncScan") |
|
|
|
public Result<SyncScanResult> ImgSyncScan(@RequestBody ImgScanParam param) { |
|
|
|
ValidatorUtils.validateEntity(param); |
|
|
|
Result<SyncScanResult> scanResultResult = scanService.sendSyncImgScan(param); |
|
|
|
return scanResultResult; |
|
|
|
} |
|
|
@ -44,6 +46,7 @@ public class ScanController { |
|
|
|
*/ |
|
|
|
@RequestMapping("textSyncScan") |
|
|
|
public Result<SyncScanResult> textSyncScan(@RequestBody TextScanParam param) { |
|
|
|
ValidatorUtils.validateEntity(param); |
|
|
|
Result<SyncScanResult> scanResultResult = scanService.sendTextScan(param); |
|
|
|
return scanResultResult; |
|
|
|
} |
|
|
|