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.information.WebInformationSearchDto;
import com.crm.rely.backend.model.entity.web.information.WebInformationAddEntity;
import com.crm.rely.backend.model.entity.web.information.WebInformationDeleteEntity;
import com.crm.rely.backend.model.entity.web.information.WebInformationSearchListEntity;
import com.crm.rely.backend.model.entity.web.information.WebInformationUpdateEntity;
import com.crm.rely.backend.model.pojo.table.WebInformationTable;

public interface WebInformationService {
    BaseResultDto<WebInformationSearchDto> searchSingle(Long id) throws ServiceException;

    WebInformationTable getById(Long id) throws ServiceException;

    ResultWithPagerDto<WebInformationSearchDto> pageSearchList(WebInformationSearchListEntity entity) throws ServiceException;

    void add(WebInformationAddEntity entity)throws ServiceException;

    void update(WebInformationUpdateEntity entity) throws ServiceException;

    void delete(WebInformationDeleteEntity entity) throws ServiceException;
}
