package com.lideeyunji.service.system.api;

import com.lideeyunji.service.system.dto.NotifySendSingleToUserReqDTO;
import com.lideeyunji.service.system.service.INotifySendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 站内信发送 API 实现类
 *
 * @author xrcoder
 */
@Service
public class ApiNotifyMessageSendApiImpl implements IApiNotifyMessageSendApi {

    @Resource
    private INotifySendService notifySendService;

    @Override
    public void sendSingleMessageToAdmin(NotifySendSingleToUserReqDTO reqDTO) {
         notifySendService.sendSingleNotifyToAdmin(reqDTO.getUserId(),
                reqDTO.getTemplateCode(), reqDTO.getTemplateParams());
    }


}
