mirror of https://gitee.com/stylefeng/roses
【8.1.0】【message】【个人消息】定义消息发送和撤回的接口
parent
922100e4cb
commit
44399b85fa
|
@ -0,0 +1,30 @@
|
|||
package cn.stylefeng.roses.kernel.sys.api;
|
||||
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.message.MessageRetractDTO;
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.message.MessageSendDTO;
|
||||
|
||||
/**
|
||||
* 适用于框架上,给个人消息模块发送的消息
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/1/14 22:06
|
||||
*/
|
||||
public interface MessagePublishApi {
|
||||
|
||||
/**
|
||||
* 消息发送的接口
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/1/14 22:16
|
||||
*/
|
||||
void batchSendMessage(MessageSendDTO messageSendDTO);
|
||||
|
||||
/**
|
||||
* 消息撤回的接口,删除指定业务id关联的消息
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/1/14 22:16
|
||||
*/
|
||||
void batchRetractMessage(MessageRetractDTO messageRetractDTO);
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package cn.stylefeng.roses.kernel.sys.api.pojo.message;
|
||||
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 消息发送的信息包装
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/1/14 22:15
|
||||
*/
|
||||
@Data
|
||||
public class MessageRetractDTO {
|
||||
|
||||
/**
|
||||
* 被撤回的用户id集合
|
||||
*/
|
||||
@ChineseDescription("被撤回的用户id集合")
|
||||
private Set<Long> userIdList;
|
||||
|
||||
/**
|
||||
* 业务类型,根据业务类型进行撤回
|
||||
*/
|
||||
@ChineseDescription("业务类型")
|
||||
private String businessType;
|
||||
|
||||
/**
|
||||
* 业务id,根据业务类型进行撤回
|
||||
*/
|
||||
@ChineseDescription("业务id")
|
||||
private String businessId;
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
package cn.stylefeng.roses.kernel.sys.api.pojo.message;
|
||||
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 消息发送的信息包装
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/1/14 22:15
|
||||
*/
|
||||
@Data
|
||||
public class MessageSendDTO {
|
||||
|
||||
/**
|
||||
* 接收用户id集合,可以一次发给多个人
|
||||
*/
|
||||
@ChineseDescription("接收用户id集合,可以一次发给多个人")
|
||||
private Set<Long> userIdList;
|
||||
|
||||
/**
|
||||
* 发送用户id
|
||||
*/
|
||||
@ChineseDescription("发送用户id")
|
||||
private Long sendUserId;
|
||||
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
@ChineseDescription("消息标题")
|
||||
private String messageTitle;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@ChineseDescription("消息内容")
|
||||
private String messageContent;
|
||||
|
||||
/**
|
||||
* 消息类型:NORMAL-普通类型,URL-带链接跳转
|
||||
*/
|
||||
@ChineseDescription("消息类型:NORMAL-普通类型,URL-带链接跳转")
|
||||
private String messageType;
|
||||
|
||||
/**
|
||||
* 消息跳转的URL
|
||||
*/
|
||||
@ChineseDescription("消息跳转的URL")
|
||||
private String messageUrl;
|
||||
|
||||
/**
|
||||
* 优先级:high-高优先级,middle-中,low-低
|
||||
*/
|
||||
@ChineseDescription("优先级:high-高优先级,middle-中,low-低")
|
||||
private String priorityLevel;
|
||||
|
||||
/**
|
||||
* 关联业务id
|
||||
*/
|
||||
@ChineseDescription("关联业务id")
|
||||
private String businessId;
|
||||
|
||||
/**
|
||||
* 业务类型(根据业务id和业务类型可以确定业务数据)
|
||||
*/
|
||||
@ChineseDescription("业务类型(根据业务id和业务类型可以确定业务数据)")
|
||||
private String businessType;
|
||||
|
||||
}
|
Loading…
Reference in New Issue