|
@@ -6,11 +6,7 @@ import com.fdkankan.manage_jp.service.ICameraService;
|
|
|
import com.fdkankan.manage_jp.vo.request.CameraAddParam;
|
|
|
import com.fdkankan.manage_jp.vo.request.CameraListParam;
|
|
|
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.*;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -55,5 +51,11 @@ public class CameraController extends BaseController{
|
|
|
cameraService.bind(param);
|
|
|
return Result.success();
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/getByUser/{userId}/{oldCameraId}")
|
|
|
+ public Result getByUser(@PathVariable Long userId,
|
|
|
+ @PathVariable Long oldCameraId){
|
|
|
+ return Result.success(cameraService.getByUser(userId,oldCameraId));
|
|
|
+ }
|
|
|
}
|
|
|
|