package com.lantone.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lantone.common.dto.LoginLogDTO;
import com.lantone.security.vo.GetLoginLogVO;
import com.lantone.security.vo.GetLoginNameAndIpVO;
import com.lantone.security.entity.LoginLog;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 * 表名：sys_login_log Mapper接口
 * </p>
 */
@Repository
public interface LoginLogMapper extends BaseMapper<LoginLog> {
    void addLoginLog(LoginLogDTO loginLogDTO);

    IPage<LoginLogDTO> getLoginLog(GetLoginLogVO getLoginLogVO);

    List<String> getLoginLogNameAndIp(GetLoginNameAndIpVO getLoginNameAndIpVO);
}