package org.jeecg.api.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.api.service.AppletConfigService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.commonConfig.entity.CommonConfig;
import org.jeecg.modules.commonConfig.service.ICommonConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class AppletConfigServiceImpl implements AppletConfigService {

    @Resource
    private ICommonConfigService commonConfigService;

    //获取平台基础配置
    @Override
    public Result<?> getConfig(){
        List<CommonConfig> list = commonConfigService.list();
        return Result.OK("配置信息",list);
    }
}
