package cn.sikey.hmd.api.hmd;

import cn.sikey.framework.common.pojo.CommonResult;
import cn.sikey.hmd.api.hmd.dto.activation.DeviceActivationDTO;
import cn.sikey.hmd.api.hmd.vo.activation.UpdateRemainingTimesExpireTimeReqVO;
import cn.sikey.hmd.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: nelson
 * @Date: 2025/5/16
 * @Description: 设备激活
 */
@FeignClient(name = ApiConstants.NAME)
public interface DeviceActivationApi {
    String PREFIX = ApiConstants.PREFIX;

    @PostMapping(PREFIX + "/updateRemainingTimesExpireTime")
    CommonResult<Void> updateRemainingTimesExpireTime(@RequestBody @Validated UpdateRemainingTimesExpireTimeReqVO updateRemainingTimesExpireTimeReqVO);

    @GetMapping(PREFIX + "/queryDeviceActivation")
    CommonResult<DeviceActivationDTO> queryDeviceActivation(@RequestParam String deviceId);
}
