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