package cn.sikey.selenium.api.selenium;


import cn.sikey.framework.common.pojo.CommonResult;
import cn.sikey.selenium.api.selenium.dto.AuthRespVO;
import cn.sikey.selenium.api.selenium.dto.TriggerSmsReqDTO;
import cn.sikey.selenium.api.selenium.dto.VerifyCodeReqDTO;
import cn.sikey.selenium.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: nelson
 * @Date: 2025/6/25
 * @Description: 验证码
 */
@FeignClient(name = ApiConstants.NAME)
public interface SmsApi {

    String PREFIX = ApiConstants.PREFIX;

    @PostMapping(PREFIX + "/triggerSmsVerification")
    CommonResult<Void> triggerSmsVerification(@Validated @RequestBody TriggerSmsReqDTO triggerSmsReqDTO);

    @PostMapping(PREFIX + "/verifyCodeAndLogin")
    CommonResult<AuthRespVO> verifyCodeAndLogin(@Validated @RequestBody VerifyCodeReqDTO verifyCodeReqDTO);

}
