package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.exception.ServiceException;
import com.crm.rely.backend.model.dto.market.email.MarketEmailListDto;
import com.crm.rely.backend.model.entity.market.MarketEmailAddEntity;
import com.crm.rely.backend.model.entity.market.MarketEmailSearchPageEntity;
import com.crm.rely.backend.model.entity.market.MarketEmailTestEntity;
import com.crm.rely.backend.model.pojo.table.MarketEmailTable;

public interface MarketEmailService {

    void test(MarketEmailTestEntity entity) throws ServiceException;

    MarketEmailTable add(MarketEmailAddEntity entity) throws ServiceException;

    ResultWithPagerDto<MarketEmailListDto> searchPageList(MarketEmailSearchPageEntity entity) throws Exception;

    MarketEmailListDto searchSingle(SingleLongEntity entity) throws Exception;
}
