package com.corewing.app.modules.qc;

import com.corewing.app.common.Result;
import com.corewing.app.dto.qc.ValidateWirelessBoardRequest;
import com.corewing.app.service.BizDeviceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "无线版QC")
@RestController
@RequestMapping("/api/qc/wireless")
public class WirelessBoardController {
    private final BizDeviceService bizDeviceService;

    public WirelessBoardController(BizDeviceService bizDeviceService) {
        this.bizDeviceService = bizDeviceService;
    }


    @ApiOperation("验证已经激活的无线板")
    @PostMapping("/validate-wireless")
    public Result<Boolean> validateWirelessBoard(@RequestBody ValidateWirelessBoardRequest validateWirelessBoardRequest) {
        return bizDeviceService.validateWirelessBoard(validateWirelessBoardRequest);
    }
}
