
package com.tmerclub.cloud.api.user.feign;

import com.tmerclub.cloud.common.order.vo.ShopCartOrderMergerVO;
import com.tmerclub.cloud.common.response.ServerResponseEntity;

import java.util.List;

/**
 * 用户等级积分订单计算feign连接
 * @author tmerclub
 * @date 2021/05/10
 */
public interface UserLevelAndScoreOrderFeignClient {


    /**
     * 计算订单等级和积分优惠
     * @param shopCartOrderMerger 订单信息
     * @return
     */
    ServerResponseEntity<ShopCartOrderMergerVO> calculateLevelAndScoreDiscount(ShopCartOrderMergerVO shopCartOrderMerger);

    /**
     * 获取财务对账退款积分
     * @param refundIds
     * @return
     */
    ServerResponseEntity<Long> getScoreCount(List<Long> refundIds);

    /**
     * 获取该用户是否具有平台会员包邮权益
     * @param userId
     * @param shopId
     * @return
     */
    ServerResponseEntity<Boolean> getHaveFreeFeeRight(Long userId, Long shopId);
}
