package com.sqx.modules.address.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.address.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AddressDao extends BaseMapper<Address> {

    /**
     * 分页查询用户地址列表
     *
     * @param pages             分页信息
     * @param userId            用户id
     * @param insideAddressFlag 是否查询内部地址标识
     * @return 用户地址列表
     */
    IPage<Address> selectAddressList(@Param("pages") Page<Address> pages, @Param("userId") Long userId, @Param("insideAddressFlag") Boolean insideAddressFlag);

}
