1
2
3
4
5 package gboat2.web.service.impl;
6
7 import gboat2.base.core.service.BaseService;
8 import gboat2.web.business.IPreferenceConfigBusiness;
9 import gboat2.web.model.PreferenceConfig;
10 import gboat2.web.service.IPreferenceConfigService;
11
12 import java.util.List;
13
14 import org.springframework.beans.factory.annotation.Autowired;
15
16
17
18
19
20 public class PreferenceConfigServiceImpl extends BaseService implements IPreferenceConfigService {
21
22 @Autowired
23 private IPreferenceConfigBusiness preConfigBusiness;
24
25 @Override
26 public PreferenceConfig getPreferenceConfigByKey (String configKey) {
27 return preConfigBusiness.getPreferenceConfigByKey(configKey);
28 }
29
30 @Override
31 public String getPreferenceConfigValueByKey (String configKey) {
32 return preConfigBusiness.getPreferenceConfigValueByKey(configKey);
33 }
34
35 @Override
36 public List<PreferenceConfig> getPreferenceConfigListByType (String configType) {
37 return preConfigBusiness.getPreferenceConfigListByType(configType);
38 }
39
40 @Override
41 public boolean submitConfig (PreferenceConfig config) {
42 return preConfigBusiness.submitConfig(config);
43 }
44
45 @Override
46 public boolean deleteConfig (PreferenceConfig config) {
47 return preConfigBusiness.deleteConfig(config);
48 }
49
50 @Override
51 public boolean deleteConfig (String configKey) {
52 return preConfigBusiness.deleteConfig(configKey);
53 }
54 }