package com.crm.manager.service;

import com.crm.manager.entity.excel.SysApproveEmailExcelEntity;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.system.email.approve.SysApproveEmailListDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.system.email.approve.SysApproveEmailAddEntity;
import com.crm.rely.backend.core.entity.system.email.approve.SysApproveEmailDeleteEntitys;
import com.crm.rely.backend.core.entity.system.email.approve.SysApproveEmailSearchEntity;
import com.crm.rely.backend.core.entity.system.email.approve.SysApproveEmailUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;

import java.util.List;

public interface SysApproveEmailService {

    void add(SysApproveEmailAddEntity entity) throws ServiceException;

    void delete(SysApproveEmailDeleteEntitys entitys) throws ServiceException;

    void update(SysApproveEmailUpdateEntity entity) throws ServiceException;

    ResultWithPagerDto<SysApproveEmailListDto> searchPageList(SysApproveEmailSearchEntity entity) throws ServiceException;

    SysApproveEmailListDto searchSingle(SingleLongEntity entity) throws ServiceException;

    void importSysApproveEmail(List<SysApproveEmailExcelEntity> emailEntities);
}
