parent
8a10e0f9dc
commit
bebfd9d122
@ -1,11 +1,18 @@
|
||||
package com.luoo.comment.client;
|
||||
|
||||
|
||||
import api.Result;
|
||||
import client.vo.SimpleUser;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient("luoo-user")
|
||||
public interface UserClient {
|
||||
|
||||
//todo 根据用户 IDs 获取用户昵称集合
|
||||
@GetMapping("/findUserByIds")
|
||||
Result<List<SimpleUser>> findUserByIds(List<String> ids);
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package client.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SimpleUser {
|
||||
|
||||
private String userId;
|
||||
|
||||
private String nickName;
|
||||
}
|
Loading…
Reference in new issue