package com.zhongshu.card.server.core.controller.fix;

import com.github.microservice.net.ResultContent;
import com.zhongshu.card.server.core.service.fix.FixDataService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TRX
 * @date 2024/6/27
 */
@RequestMapping("/fixData")
@RestController
@Validated
@Tag(name = "Fix修复数据")
public class FixDataController {

    @Autowired
    private FixDataService fixDataService;

    @Operation(summary = "同步全部项目到物联网平台")
    @RequestMapping(value = "fixSyncDevice", method = {RequestMethod.GET})
    public ResultContent fixSyncDevice() {
        return fixDataService.fixSyncProjectToIot();
    }
}
