package com.tofly.api;

import com.tofly.common.core.entity.ResultRespone;
import com.tofly.pojo.User;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "tofly-base",contextId="UserClent")
public interface UserClent {

    @GetMapping("/user/{id}")
    ResultRespone<User> getById(@PathVariable("id") Long id);
    @GetMapping("/user/getUserIdNameMap")
    ResultRespone<Map<Long,String>> getUserIdNameMap(@RequestParam(value = "userIds") String userIds);
    @GetMapping("/user/getUserAvatarPathList")
    ResultRespone<Map<Long,String>> getUserAvatarPathList(@RequestParam(value = "userIds") String userIds);

    @GetMapping("/user/getUserInfoByKeyWord")
    ResultRespone<List<User>> getUserInfoByKeyWord(@RequestParam("keyWord") String keyWord);

}
