package com.sckw.message.api.feign;

import com.sckw.core.web.response.BaseResult;
import com.sckw.message.api.model.GetSmsDto;
import com.sckw.message.api.model.SendSmsDto;
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;


@FeignClient(name = "sckw-ng-message", contextId = "SmsInfoApi")
public interface SmsApiService {

    @PostMapping(value = "/sms/getVerifyCode")
    BaseResult<Object> getVerifyCode(GetSmsDto getSmsDto);

    @PostMapping(value = "/sms/sendVerifyCode")
    BaseResult<Object> sendVerifyCode(@RequestBody @Validated SendSmsDto sendSmsDto);

}
