|
@@ -8,11 +8,7 @@ import com.huimv.farm.musk.entity.DevThreshold;
|
|
|
import com.huimv.farm.musk.service.IDevEnvService;
|
|
|
import com.huimv.farm.musk.service.IDevThresholdService;
|
|
|
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 java.util.Map;
|
|
|
|
|
@@ -26,6 +22,7 @@ import java.util.Map;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/dev-threshold")
|
|
|
+@CrossOrigin
|
|
|
public class DevThresholdController {
|
|
|
|
|
|
@Autowired
|