package com.atguigu.ssyx.client.user;

import com.atguigu.ssyx.vo.user.LeaderAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: UserFeignClient
 * Package: com.atguigu.ssyx.client.user
 *
 * @author yovinchen
 * @Create 2023/9/25 12:27
 */
@FeignClient(value = "service-user")
public interface UserFeignClient {

    /**
     * 提货点地址信息
     *
     * @param userId
     * @return
     */
    @GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
    LeaderAddressVo getUserAddressByUserId(@PathVariable("userId") Long userId);
}
