消息提醒

This commit is contained in:
xiaofajia 2024-10-10 09:14:20 +08:00
parent 79c6e15460
commit 3ba3c7e42e
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package cn.iocoder.yudao.common;
import cn.iocoder.yudao.module.system.api.notify.NotifyMessageSendApi;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* 用于发送消息
*
* @author 小李
* @date 17:15 2024/10/9
**/
@Component
public class MessageSend {
@Resource
private NotifyMessageSendApi messageSendApi;
}

View File

@ -0,0 +1,21 @@
package cn.iocoder.yudao.common.dto;
import lombok.Data;
/**
* 用于发消息
*
* @author 小李
* @date 17:34 2024/10/9
**/
@Data
public class MessageDTO {
/** 接收方id 来自system_users */
private Long userId;
/** 使用的模板code */
private String templateCode;
}