package com.crm.web.service;

import com.crm.rely.backend.core.dto.system.config.SysConfigSearchDto;
import com.crm.rely.backend.core.entity.system.config.SysConfigSingleEntity;
import com.crm.rely.backend.core.pojo.table.SysConfigTable;
import com.crm.rely.backend.core.exception.ServiceException;

import java.util.List;

public interface SysConfigService {

    /**
     * 根据条件 单个获取配置信息
     *
     * @param entity
     * @return
     * @throws ServiceException
     */
    SysConfigSearchDto searchSingle(SysConfigSingleEntity entity) throws ServiceException;

    List<SysConfigTable> getByCodes(List<String> codes) throws ServiceException;

    SysConfigTable getByCode(String code) throws ServiceException;

}
