消息提醒
This commit is contained in:
parent
79c6e15460
commit
3ba3c7e42e
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user