package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.business.email.receive.BusinessEmailReceiveRecordDto;
import com.crm.rely.backend.core.entity.tenant.email.receive.BusinessEmailReceiveRecordAddEntity;
import com.crm.rely.backend.core.entity.tenant.email.receive.BusinessEmailReceiveRecordSearchEntity;
import com.crm.rely.backend.exception.ServiceException;

public interface BusinessEmailReceiveRecordService {
    void add(BusinessEmailReceiveRecordAddEntity entity) throws ServiceException;

    /**
     * 根据条件查询配置
     *
     * @param entity
     * @return
     * @throws ServiceException
     */
    BaseResultDto searchList(BusinessEmailReceiveRecordSearchEntity entity) throws ServiceException;

    int selectCount(BusinessEmailReceiveRecordSearchEntity searchCount);

    /**
     * 根据条件 单个获取配置信息
     *
     * @param id
     * @return
     * @throws ServiceException
     */
    BusinessEmailReceiveRecordDto searchSingle(Long id) throws ServiceException;

}
