package com.epmet.feign; import com.epmet.commons.tools.constant.ServiceConstant; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.form.UpdateCachedRolesFormDTO; import com.epmet.feign.fallback.AuthFeignClientCallback; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; //@FeignClient(name = ServiceConstant.EPMET_AUTH_SERVER, fallback = AuthFeignClientCallback.class, url = "localhost:8081") @FeignClient(name = ServiceConstant.EPMET_AUTH_SERVER, fallback = AuthFeignClientCallback.class) public interface AuthFeignClient { /** * 更新缓存的角色列表 * @param form * @return */ @PostMapping("/auth/gov/updatecachedroles") Result updateCachedRoles(@RequestBody UpdateCachedRolesFormDTO form); }