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