package com.jeesharp.business.modules.mall.service;

import com.jeesharp.business.modules.mall.entity.MallMemberAddress;
import com.jeesharp.business.modules.mall.vo.MallMemberAddressQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;

/**
 * 会员地址 Service 接口
 */
public interface MallMemberAddressService extends BaseInterface<MallMemberAddress, MallMemberAddressQueryVO> {

    void createAddress(MallMemberAddress entity);

    void updateAddress(MallMemberAddress entity);
List<MallMemberAddress> getMemberAddresses(String memberId);

    MallMemberAddress getDefaultAddress(String memberId);

    void setDefaultAddress(String addressId, String memberId);

    void cancelDefaultAddress(String memberId);

    String getFullAddress(MallMemberAddress address);
}
