package com.chinaweal.aiccs.org.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaweal.aiccs.org.entity.SysMenu;
import com.chinaweal.aiccs.org.entity.dto.OrgOperationLogDto;
import com.chinaweal.aiccs.org.mapper.SysMenuMapper;
import com.chinaweal.aiccs.org.service.SysMenuService;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseServiceImpl;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.page.PageRequestDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lee
 * @since 2021-06-21
 */
@Service
public class SysMenuServiceImpl extends BaseServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {

    @Resource
    private SysMenuMapper sysMenuMapper;

    @Override
    public IPage<OrgOperationLogDto> listOrgOperationLog(PageRequestDto pageRequestDto) {
        return sysMenuMapper.listOrgOperationLog(new Page<>(pageRequestDto.getCurPage(), pageRequestDto.getPageSize()), pageRequestDto.getParamMap());
    }
}
