| | |
| | | OperateUser operateUser = operateUserService.updatePassword(uid,password,newpassword);
|
| | | return new AppData<OperateUser>(operateUser);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 根据 设备id 来获取设备信息
|
| | | */
|
| | | @RequestMapping("deviceInfo")
|
| | | public AppData<Device> deviceInfo(Integer id){
|
| | | Device device = deviceService.queryById(id);
|
| | | return new AppData<Device>(device);
|
| | | }
|
| | | /**
|
| | | *
|
| | | * @param equDeviceAdapter
|
| | |
| | | */
|
| | | @RequestMapping("reportDevice")
|
| | | public AppData<String> installDevice(EquDeviceAdapter equDeviceAdapter) {
|
| | | deviceService.saveOrUpdateDevice(equDeviceAdapter.toDevice());
|
| | | deviceService.addOrModify(equDeviceAdapter.toDevice());
|
| | | return new AppData<String>("");
|
| | | }
|
| | |
|