package com.sckw.system.repository.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sckw.system.dao.SysArticlesDao;
import com.sckw.system.model.SysArticles;
import com.sckw.system.repository.SysArticlesService;
import org.springframework.stereotype.Service;

/**
 * 系统内容配置表Service实现类
 * @author chenxiaofei
 * @date 2026-01-07
 */
@Service
public class SysArticlesServiceImpl extends ServiceImpl<SysArticlesDao, SysArticles> implements SysArticlesService {

    @Override
    public SysArticles getByArticleKey(String articleKey) {
        return this.getOne(new LambdaQueryWrapper<SysArticles>()
                .eq(SysArticles::getArticleKey, articleKey));
    }

}

