package cn.sikey.hmd.api;

import cn.sikey.hmd.api.hmd.QrCodeApi;
import cn.sikey.hmd.service.qr.QRCodeService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

/**
 * 二维码 API 接口实现类
 *
 * @author qin
 */
@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class QrCodeApiImpl implements QrCodeApi {

    @Resource
    private QRCodeService qrCodeService;

    /*@Override
    public CommonResult<Void> updateRemainingTimesExpireTime(String deviceId, String expireTime, int remainingTimes, int plansValidity) {
        return qrCodeService.updateRemainingTimesExpireTime(deviceId, expireTime, remainingTimes, plansValidity);
    }*/

    /*@Override
    public CommonResult<RemainingTimesExpireTimeRespVO> queryDeviceQrcodeDOByDeviceId(String deviceId) {
        return CommonResult.success(qrCodeService.queryDeviceQrcodeDOByDeviceId(deviceId));
    }*/
}
