增加全局配置

This commit is contained in:
none
2023-03-09 13:58:51 +08:00
parent 82f0783cb8
commit 908b35f3de
10 changed files with 155 additions and 63 deletions

View File

@@ -6,15 +6,22 @@ import xyz.playedu.api.service.AppConfigService;
import xyz.playedu.api.mapper.AppConfigMapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @author tengteng
* @description 针对表【app_config】的数据库操作Service实现
* @createDate 2023-03-09 11:13:33
*/
* @author tengteng
* @description 针对表【app_config】的数据库操作Service实现
* @createDate 2023-03-09 11:13:33
*/
@Service
public class AppConfigServiceImpl extends ServiceImpl<AppConfigMapper, AppConfig>
implements AppConfigService{
implements AppConfigService {
@Override
public Map<String, Long> allKeys() {
return list().stream().collect(Collectors.toMap(AppConfig::getKeyName, AppConfig::getId));
}
}