package com.ruoyi.dk.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.dk.domain.HomeSetting;
import com.ruoyi.dk.mapper.HomeSettingMapper;
import com.ruoyi.dk.service.HomeSettingService;
import org.springframework.stereotype.Service;

@Service
public class HomeSettingServiceImpl extends ServiceImpl<HomeSettingMapper, HomeSetting> implements HomeSettingService {
    @Override
    public HomeSetting getHomeSetting(){
        return this.getOne(Wrappers.lambdaQuery(HomeSetting.class).last("limit 1"));
    }
}
