package com.backendsys.modules.system.service.impl;

import com.backendsys.modules.system.dao.SysLanguageDao;
import com.backendsys.modules.system.entity.SysLanguage;
import com.backendsys.modules.system.service.SysLanguageService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLanguageServiceImpl implements SysLanguageService {

    @Autowired
    private SysLanguageDao sysLanguageDao;

    @Override
    public List<SysLanguage> selectLanguageList() {
        LambdaQueryWrapper<SysLanguage> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysLanguage::getStatus, 1);
        return sysLanguageDao.selectList(wrapper);
    }

}
