package com.hzs.member.address.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.member.address.CuMemberReceiving;
import com.hzs.member.base.param.MemberAddressParam;

/**
 * 会员收货信息 服务类
 *
 * @author hzs
 * @since 2022-08-22
 */
public interface ICuMemberReceivingService extends IService<CuMemberReceiving> {

    /**
     * 保存会员收货信息
     *
     * @param param     保存入参
     * @param userId
     * @param pkCountry
     */
    boolean save(MemberAddressParam param, Long userId, Integer pkCountry);

    /**
     * 设为默认
     *
     * @param pkId   地址ID
     * @param userId
     * @return
     */
    boolean setDefault(Long pkId, Long userId);

}
