package com.fourdage.system.service;

import java.util.List;

import com.fourdage.base.service.IBaseService;
import com.fourdage.system.entity.DataDictionary;

/**
 * <p>
 * 数据字典服务类
 * </p>
 *
 * @author ajay peng
 * @since 2018-05-02
 */
public interface IDataDictionaryService extends IBaseService<DataDictionary, Integer>{
	
    /**
     * 修改或者新增资源
     *
     * @param DataDictionary
     */
    void saveOrUpdate(DataDictionary dataDictionary);
    
    /**
     * 根据code和dateKey查找
     *
     * @param DataDictionary
     */
    DataDictionary findByCodeAndDataKey(String code, String dataKey);

    /**
     * 根据code查找
     *
     * @param DataDictionary
     */
	List<DataDictionary> findByCode(String code);
	
    /**
     * 根据条件查找
     *
     * @param DataDictionary
     */
	List<DataDictionary> findByCondition(DataDictionary dataDictionary);

}
