package com.jeelowcode.service.system.api;

import com.jeelowcode.service.system.dto.SmsSendSingleToUserReqDTO;
import com.jeelowcode.service.system.service.ISmsSendService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * 短信发送 API 接口
 *
 * @author 芋道源码
 */
@Service
@Validated
public class ApiSmsSendApiImpl implements IApiSmsSendApi {

    @Resource
    private ISmsSendService smsSendService;

    @Override
    public Long sendSingleSmsToAdmin(SmsSendSingleToUserReqDTO reqDTO) {
        return smsSendService.sendSingleSmsToAdmin(reqDTO.getMobile(), reqDTO.getTemplateCode(), reqDTO.getTemplateParams());
    }



}
