package com.wecloud.im.core.ip.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wecloud.im.core.ip.entity.IpAddress;

/**
 * IP地址 Mapper 接口
 *
 * @author geekidea
 * @since 2020-03-25
 */
@Repository
public interface IpAddressMapper extends BaseMapper<IpAddress> {

    /**
     * 通过ip地址获取IP对象
     *
     * @param ip
     * @return
     */
    IpAddress getByIp(@Param("ip") String ip);

}
