You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
881 B
23 lines
881 B
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);
|
|
|
|
}
|
|
|