| | |
| | | package com.yeshi.fanli.service.inter.config;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.system.ConfigCategory;
|
| | | import com.yeshi.fanli.entity.system.ConfigCategory.ConfigCategoryEnum;
|
| | |
|
| | | public interface ConfigCategoryService {
|
| | |
|
| | | /**
|
| | | * 添加分类信息
|
| | | * @param configCategory
|
| | | */
|
| | | public void addConfigCategory(ConfigCategory configCategory);
|
| | |
|
| | | /**
|
| | | * 根据分类查询key值
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | public List<ConfigCategory> listByType(ConfigCategoryEnum type);
|
| | |
|
| | | /**
|
| | | * 获取类型枚举
|
| | | * @param name
|
| | | * @return
|
| | | */
|
| | | public ConfigCategoryEnum getCategoryEnum(String name);
|
| | |
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.inter.config; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.system.ConfigCategory; |
| | | import com.yeshi.fanli.entity.system.ConfigCategory.ConfigCategoryEnum; |
| | | |
| | | public interface ConfigCategoryService { |
| | | |
| | | /** |
| | | * 添加分类信息 |
| | | * @param configCategory |
| | | */ |
| | | public void addConfigCategory(ConfigCategory configCategory); |
| | | |
| | | /** |
| | | * 根据分类查询key值 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public List<ConfigCategory> listByType(ConfigCategoryEnum type); |
| | | |
| | | /** |
| | | * 获取类型枚举 |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public ConfigCategoryEnum getCategoryEnum(String name); |
| | | |
| | | |
| | | } |