package com.xinelu.quartz.service;

import com.alibaba.fastjson2.JSONObject;
import com.aliyuncs.exceptions.ClientException;
import com.xinelu.manage.domain.shortmessagesendrecord.ShortMessageSendRecord;
import com.xinelu.manage.domain.textmessage.SmsReport;
import com.xinelu.manage.domain.textmessage.TaskMessageBackEntity;
import com.xinelu.manage.vo.signpatientmanageroute.SignPatientManageRouteVO;

import java.util.List;

/**
 * @Description 短信发送定时任务业务层
 * @Author zh
 * @Date 2024-05-24
 */
public interface SendTextMessageService {

    /**
     * 签约患者管理任务路径节点短信发送定时任务
     */
    void sendTextMessageSendTask() throws ClientException;

    List<TaskMessageBackEntity> taskMessageBack(TaskMessageBackEntity taskMessageBackEntity);

    /**
     * 任务执行回调方法
     *
     * @param data 任务单通电话回调传输data
     * @return JSONObject
     */
    JSONObject taskTextMessageSendBack(SmsReport data, List<ShortMessageSendRecord> shortMessageSendRecords, SignPatientManageRouteVO signPatientManageRoute);

    Integer updateReadState(Integer readState, List<Integer> ids);

    Integer deleteData();
}
