package com.kxs.user.biz.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kxs.common.security.util.SecurityUtils;
import com.kxs.user.api.vo.kxsapp.userPresetLevel.UserPresetLogVO;
import com.kxs.user.biz.mapper.KxsUserPresetLogMapper;
import com.kxs.user.api.model.KxsUserPresetLog;
import com.kxs.user.biz.service.KxsUserPresetLogService;
import org.springframework.stereotype.Service;

/**
 * 用户预设职级日志表(KxsUserPresetLog)表服务实现类
 *
 * @author 系统
 * @since 2024-01-03 09:39:56
 */
@Service("kxsUserPresetLogService")
public class KxsUserPresetLogServiceImpl extends ServiceImpl<KxsUserPresetLogMapper, KxsUserPresetLog> implements KxsUserPresetLogService {

    @Override
    public IPage<UserPresetLogVO> logList(Page<UserPresetLogVO> page, String keyword) {

        Long userId = SecurityUtils.getUser().getId();

        return baseMapper.logList(page, userId, keyword);
    }
}

