|
@@ -11,11 +11,7 @@ import com.huimv.cattle.utils.FarmCodeUtils;
|
|
import com.huimv.common.utils.Result;
|
|
import com.huimv.common.utils.Result;
|
|
import com.huimv.common.utils.ResultCode;
|
|
import com.huimv.common.utils.ResultCode;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -31,6 +27,7 @@ import java.util.Map;
|
|
* @author zn
|
|
* @author zn
|
|
* @since 2022-12-14
|
|
* @since 2022-12-14
|
|
*/
|
|
*/
|
|
|
|
+@CrossOrigin
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/v1.0.0/preventDetection")
|
|
@RequestMapping("/v1.0.0/preventDetection")
|
|
public class PreventDetectionController {
|
|
public class PreventDetectionController {
|