package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.business.email.sent.BusinessEmailSentRecordDto;
import com.crm.rely.backend.core.entity.tenant.email.sent.BusinessEmailSentRecordAddEntity;
import com.crm.rely.backend.core.entity.tenant.email.sent.BusinessEmailSentRecordSearchEntity;
import com.crm.rely.backend.exception.ServiceException;

public interface BusinessEmailSentRecordService {


    void add(BusinessEmailSentRecordAddEntity entity) throws ServiceException;


    /**
     * 根据条件查询配置
     *
     * @param entity
     * @return
     * @throws ServiceException
     */
//    ResultWithPagerDto<BusinessEmailSentRecordDto> searchPageList(BusinessEmailSentRecordSearchListEntity
//    entity)
//    throws
//    ServiceException;
    BaseResultDto searchList(BusinessEmailSentRecordSearchEntity entity) throws ServiceException;

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

    int selectCount(BusinessEmailSentRecordSearchEntity searchCount);

}
