|
@ -1,6 +1,7 @@ |
|
|
package com.iflytop.handacid.app.controller; |
|
|
package com.iflytop.handacid.app.controller; |
|
|
|
|
|
|
|
|
import com.iflytop.handacid.app.core.state.DeviceState; |
|
|
import com.iflytop.handacid.app.core.state.DeviceState; |
|
|
|
|
|
import com.iflytop.handacid.app.model.bo.DeviceInfo; |
|
|
import com.iflytop.handacid.app.model.dto.SyncOperationsDTO; |
|
|
import com.iflytop.handacid.app.model.dto.SyncOperationsDTO; |
|
|
import com.iflytop.handacid.app.service.DeviceService; |
|
|
import com.iflytop.handacid.app.service.DeviceService; |
|
|
import com.iflytop.handacid.common.result.Result; |
|
|
import com.iflytop.handacid.common.result.Result; |
|
@ -25,6 +26,12 @@ public class DeviceController { |
|
|
return Result.success(deviceState.toJSON()); |
|
|
return Result.success(deviceState.toJSON()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "获取当前设备信息") |
|
|
|
|
|
@GetMapping("/device-info") |
|
|
|
|
|
public Result<DeviceInfo> getDeviceInfo() { |
|
|
|
|
|
return Result.success(deviceState.getDeviceInfo()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Operation(summary = "同步用户操作") |
|
|
@Operation(summary = "同步用户操作") |
|
|
@PostMapping("/sync") |
|
|
@PostMapping("/sync") |
|
|
public Result<?> syncOperations(@RequestBody SyncOperationsDTO syncOperationsDTO) { |
|
|
public Result<?> syncOperations(@RequestBody SyncOperationsDTO syncOperationsDTO) { |
|
|