2021-11-09 03:31:49 +00:00
|
|
|
package com.zhangmeng.blog.feign;
|
|
|
|
|
|
|
|
|
|
import com.zhangmeng.model.dto.SysConstant;
|
|
|
|
|
import com.zhangmeng.model.entity.User;
|
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
2021-11-10 07:21:16 +00:00
|
|
|
@FeignClient(SysConstant.mystyle_cloud_admin_manager)
|
2021-11-09 03:31:49 +00:00
|
|
|
public interface UserFeign {
|
|
|
|
|
|
2021-11-10 07:21:16 +00:00
|
|
|
@GetMapping("/user/current")
|
2021-11-09 03:31:49 +00:00
|
|
|
public User getCurrentUser();
|
|
|
|
|
}
|