package com.ruoyi.web.modules.account.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.account.domain.BizMemberAddress;

/**
 * 会员地址 Mapper
 */
public interface BizMemberAddressMapper
{
    BizMemberAddress selectById(@Param("addressId") Long addressId, @Param("memberId") Long memberId);

    List<BizMemberAddress> selectByMemberId(@Param("memberId") Long memberId);

    int insert(BizMemberAddress address);

    int update(BizMemberAddress address);

    int logicDelete(@Param("addressId") Long addressId, @Param("memberId") Long memberId);

    int clearDefault(@Param("memberId") Long memberId);

    int setDefault(@Param("addressId") Long addressId, @Param("memberId") Long memberId);
}
