Commit aa553e14 by levphon

微信小程序后端服务

1 parent 0a993d01
...@@ -9,7 +9,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -9,7 +9,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
...@@ -29,7 +28,7 @@ public class VehicleMonitorController { ...@@ -29,7 +28,7 @@ public class VehicleMonitorController {
*/ */
@ApiOperation(value = "车辆树") @ApiOperation(value = "车辆树")
@GetMapping("/search") @GetMapping("/search")
public R<List> search(@RequestParam("term") String term) { public R<List> search(String term) {
List<VehicleDeviceDTO> list = vehicleMonitorService.search(term); List<VehicleDeviceDTO> list = vehicleMonitorService.search(term);
return R.ok().data(list); return R.ok().data(list);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!