publish 2.0.0.rc13
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user