New file |
| | |
| | | package org.fanli.config;
|
| | |
|
| | | import org.junit.Test;
|
| | |
|
| | | import com.yeshi.fanli.entity.system.ConfigCategory;
|
| | | import com.yeshi.fanli.entity.system.ConfigCategory.ConfigCategoryEnum;
|
| | | import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigCategoryService;
|
| | | import com.yeshi.fanli.util.BeanUtil;
|
| | |
|
| | | public class Test_ConfigCategoryService {
|
| | | |
| | | @Test
|
| | | public void addConfigCategory() {
|
| | | ConfigCategoryService service = BeanUtil.getBean(ConfigCategoryService.class);
|
| | | |
| | | ConfigCategory c1 = new ConfigCategory();
|
| | | c1.setKeyEnum(ConfigKeyEnum.msgConfigGuanxuan);
|
| | | c1.setType(ConfigCategoryEnum.helpStrategy);
|
| | | c1.setOrder(1);
|
| | | c1.setEditMode(2);
|
| | | service.addConfigCategory(c1);
|
| | | |
| | | ConfigCategory c2 = new ConfigCategory();
|
| | | c2.setKeyEnum(ConfigKeyEnum.msgConfigZhushou);
|
| | | c2.setType(ConfigCategoryEnum.specialHelper);
|
| | | c2.setOrder(1);
|
| | | c2.setEditMode(2);
|
| | | service.addConfigCategory(c2);
|
| | | |
| | | |
| | | /*ConfigCategory c3 = new ConfigCategory();
|
| | | c3.setKeyEnum(ConfigKeyEnum.orderTeamSubsidyLink);
|
| | | c3.setType(ConfigCategoryEnum.helpStrategy);
|
| | | c3.setOrder(22);
|
| | | c3.setEditMode(1);
|
| | | service.addConfigCategory(c3);
|
| | | |
| | | |
| | | ConfigCategory c4 = new ConfigCategory();
|
| | | c4.setKeyEnum(ConfigKeyEnum.orderTeamRewardLink);
|
| | | c4.setType(ConfigCategoryEnum.helpStrategy);
|
| | | c4.setOrder(23);
|
| | | c4.setEditMode(1);
|
| | | service.addConfigCategory(c4);
|
| | | |
| | | ConfigCategory c5 = new ConfigCategory();
|
| | | c5.setKeyEnum(ConfigKeyEnum.tutorSubsidyLink);
|
| | | c5.setType(ConfigCategoryEnum.helpStrategy);
|
| | | c5.setOrder(24);
|
| | | c5.setEditMode(1);
|
| | | service.addConfigCategory(c5);
|
| | | |
| | | |
| | | ConfigCategory c6 = new ConfigCategory();
|
| | | c6.setKeyEnum(ConfigKeyEnum.adminMinSameGoodsOrderCount);
|
| | | c6.setType(ConfigCategoryEnum.extract);
|
| | | c6.setOrder(6);
|
| | | service.addConfigCategory(c6);*/
|
| | | |
| | | }
|
| | | }
|