package com.wsm.admin.service;

import java.util.List;

import com.wsm.admin.model.DataDictionary;
import com.wsm.common.service.IBaseService;

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

    /**
     * 根据code查找
     *
     */
	List<DataDictionary> findByCode(String code);

}
