package com.lideeyunji.service.system.api;

import com.lideeyunji.service.system.dto.SmsSendSingleToUserReqDTO;
import com.lideeyunji.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());
    }



}
