1. fix api request

2. and todo feign
main
lyp 10 months ago
parent b0dbe10454
commit 7d984e4c7f

@ -58,6 +58,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
</dependency>
</dependencies>
<build>
<finalName>app</finalName>

@ -0,0 +1,11 @@
package com.luoo.comment.client;
import org.springframework.cloud.openfeign.FeignClient;
@FeignClient("luoo-user")
public interface UserClient {
//todo 根据用户 IDs 获取用户昵称集合
}

@ -265,7 +265,7 @@ public class UserController {
return Result.success();
}
@DeleteMapping("/{findUserByIds}")
@GetMapping("/findUserByIds")
public List<User> findUserByIds(@RequestBody List<String> userId){
List<User> byIds = userService.findByIds(userId);
return byIds;

Loading…
Cancel
Save