20 lines
614 B
Java
20 lines
614 B
Java
package com.bwie.auth.feign;
|
|
|
|
import com.bwie.common.domain.User;
|
|
import com.bwie.common.result.Result;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
/**
|
|
* @author : 李朋果
|
|
* @ClassName : UserFeignService
|
|
* @description : 描述说明该类的功能
|
|
* @createTime : 2023/11/7 9:13
|
|
*/
|
|
@FeignClient(value = "bwie-user")
|
|
public interface UserFeignService {
|
|
@PostMapping("/findByUserName/{username}")
|
|
public Result<User> findByUserName(@PathVariable String username);
|
|
}
|