package com.crm.web.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.exception.ServiceException;
import com.crm.rely.backend.model.dto.web.custom.analysis.template.WebCustomAnalysisTemplateSearchDto;
import com.crm.rely.backend.model.entity.web.custom.analysis.template.WebCustomAnalysisTemplateAddEntity;
import com.crm.rely.backend.model.entity.web.custom.analysis.template.WebCustomAnalysisTemplateDeleteEntity;
import com.crm.rely.backend.model.entity.web.custom.analysis.template.WebCustomAnalysisTemplateSearchListEntity;
import com.crm.rely.backend.model.entity.web.custom.analysis.template.WebCustomAnalysisTemplateUpdateEntity;
import com.crm.rely.backend.model.pojo.table.WebCustomAnalysisTemplateTable;

import java.util.List;

public interface WebCustomAnalysisTemplateService {
    BaseResultDto<WebCustomAnalysisTemplateSearchDto> searchSingle(Long id) throws ServiceException;

    WebCustomAnalysisTemplateTable getById(Long id) throws ServiceException;

    ResultWithPagerDto<WebCustomAnalysisTemplateSearchDto> pageSearchList(WebCustomAnalysisTemplateSearchListEntity entity) throws ServiceException;

    List<WebCustomAnalysisTemplateSearchDto> searchList(WebCustomAnalysisTemplateSearchListEntity entity) throws ServiceException;

    void add(WebCustomAnalysisTemplateAddEntity entity) throws ServiceException;

    void update(WebCustomAnalysisTemplateUpdateEntity entity) throws ServiceException;

    void delete(WebCustomAnalysisTemplateDeleteEntity entity) throws ServiceException;
}
