package com.cm.common.dingding.service;

import com.cm.common.exception.SearchException;
import com.cm.common.result.SuccessResult;

import java.util.List;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IDingDingMessageService
 * @Description: 钉钉消息
 * @Author: WangGeng
 * @Date: 2020/9/24 13:39
 * @Version: 1.0
 **/
public interface IDingDingMessageService {
    /**
     * 发送消息
     *
     * @param phone
     * @param content
     * @return
     * @throws SearchException
     */
    SuccessResult send(String phone, String content) throws SearchException;

    /**
     * 通过手机列表发送消息
     *
     * @param phones
     * @param content
     * @return
     * @throws SearchException
     */
    SuccessResult sendByPhones(List<String> phones, String content) throws SearchException;
}
