package com.njcn.user.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.user.api.fallback.AppUserFeignClientFallbackFactory;
import com.njcn.user.api.fallback.UserFeignClientFallbackFactory;
import com.njcn.user.pojo.dto.UserDTO;
import com.njcn.user.pojo.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年05月08日 15:11
 */
@FeignClient(value = ServerInfo.USER,path = "/appUser",fallbackFactory = AppUserFeignClientFallbackFactory.class,contextId = "appUser")
public interface AppUserFeignClient {

    @PostMapping("/getAdminInfo")
    HttpResult<List<User>> getAdminInfo();

}
