|
@@ -153,10 +153,10 @@ public class CameraController extends BaseController {
|
|
* 相机登录之后使用 获取用户设备
|
|
* 相机登录之后使用 获取用户设备
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/detail")
|
|
@PostMapping(value = "/detail")
|
|
- public ResultData detail(@RequestBody JSONObject jsonObject) {
|
|
|
|
|
|
+ public Result detail(@RequestBody JSONObject jsonObject) {
|
|
if(jsonObject.get("childName") == null){
|
|
if(jsonObject.get("childName") == null){
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
}
|
|
}
|
|
- return ResultData.ok(userService.findCameraDetailByChildName(getToken(), jsonObject.getString("childName")));
|
|
|
|
|
|
+ return Result.success(userService.findCameraDetailByChildName(getToken(), jsonObject.getString("childName")));
|
|
}
|
|
}
|
|
}
|
|
}
|