FixDataController.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.zswl.dataservice.controller.free;
  2. import com.zswl.dataservice.model.mqtt.GateWayInfoAddParam;
  3. import com.zswl.dataservice.service.fix.FixDataService;
  4. import com.zswl.dataservice.utils.result.ResultContent;
  5. import io.swagger.v3.oas.annotations.Operation;
  6. import io.swagger.v3.oas.annotations.tags.Tag;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.util.Assert;
  9. import org.springframework.validation.annotation.Validated;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RequestMethod;
  13. import org.springframework.web.bind.annotation.RestController;
  14. /**
  15. * @author TRX
  16. * @date 2024/6/27
  17. */
  18. @RequestMapping("/fixData")
  19. @RestController
  20. @Validated
  21. @Tag(name = "修复数据")
  22. public class FixDataController {
  23. @Autowired
  24. private FixDataService fixDataService;
  25. @Operation(summary = "同步全部设备")
  26. @RequestMapping(value = "fixSyncDevice", method = {RequestMethod.GET})
  27. public ResultContent fixSyncDevice() {
  28. return fixDataService.fixSyncDevice();
  29. }
  30. }