publish 2.0.0.rc13

This commit is contained in:
曾文豪
2024-08-05 14:18:50 +08:00
parent 333d283e24
commit be08001f3f
12 changed files with 67 additions and 82 deletions

View File

@@ -0,0 +1,40 @@
package com.tiesheng.message.service;
import cn.hutool.json.JSONObject;
import com.tiesheng.message.pojos.MessageReqResp;
/**
* @author hao
*/
public interface TsMessageSender {
/**
* 发送消息
*
* @param user
* @param title
* @param content
* @param body
* @param channel 消息通道,如果为空表示所有通道
* @return 返回的内容,如果为空表示发送成功
*/
MessageReqResp send(String user, JSONObject body);
/**
* 获取通道
*
* @return
*/
String getChannel();
/**
* 是否支持
*
* @return
*/
boolean support();
}