package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.bean.result.FlowTaskMsgResult;
import com.qmth.sop.business.bean.result.FlowTaskSmsResult;
import com.qmth.sop.business.entity.TFCustomFlowEntity;

/**
 * <p>
 * 自定义流程实体数据 服务类
 * </p>
 *
 * @author wangliang
 * @since 2023-07-17
 */
public interface TFCustomFlowEntityService extends IService<TFCustomFlowEntity> {

    /**
     * 根据id和用户id获取流程消息信息
     *
     * @param id
     * @param userId
     * @return
     */
    FlowTaskMsgResult getFlowTaskRemindMsgInfo(Long id, Long userId);

    /**
     * 获取流程实体id发送短信内容
     *
     * @param id
     * @param userId
     * @return
     */
    FlowTaskSmsResult getFlowTaskRemindSmsInfo(Long id, Long userId);

    /**
     * 获取crm单号发送短信内容
     *
     * @param crmNo
     * @param userId
     * @return
     */
    FlowTaskSmsResult getFlowTaskRemindSmsInfo(String crmNo, Long userId);
}
