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

import com.tmerclub.cloud.common.exception.LuckException;
import com.tmerclub.cloud.common.order.vo.OrderSelfStationVO;
import com.tmerclub.cloud.common.order.vo.OrderVO;
import com.tmerclub.cloud.common.response.ServerResponseEntity;

import java.util.List;
/**
 * @author lanhai
 */
public interface OrderSelfStationFeignClient {

    /**
     * 根据提货码查询订单
     * @param stationId 退款id
     * @param code   自提码
     * @return
     */
    ServerResponseEntity<OrderVO> getOrderByStationCode(Long stationId, String code) throws LuckException;

    /**
     * 获取用户常用的自提信息
     * @param userId 用户id
     * @return 用户自提订单信息
     */
    ServerResponseEntity<List<OrderSelfStationVO>> getUserStation(Long userId);

}
