9 changed files with 98 additions and 9 deletions
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.feign; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.feign.fallback.OperAccessFeignClientFallback; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
|
||||
|
/** |
||||
|
* @Description 运营端权限模块 |
||||
|
* @Author yinzuomei |
||||
|
* @Date 2020/5/21 15:17 |
||||
|
*/ |
||||
|
//, url = "http://localhost:8093"
|
||||
|
@FeignClient(name = ServiceConstant.OPER_ACCESS_SERVER, fallback = OperAccessFeignClientFallback.class) |
||||
|
public interface OperAccessFeignClient { |
||||
|
/** |
||||
|
* @param |
||||
|
* @return com.epmet.commons.tools.utils.Result |
||||
|
* @Author yinzuomei |
||||
|
* @Description 清空运营人员权限信息、菜单信息 |
||||
|
* @Date 2020/5/21 17:08 |
||||
|
**/ |
||||
|
@GetMapping("/oper/access/menu/clearoperuseraccess") |
||||
|
Result clearOperUserAccess(); |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.epmet.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.utils.ModuleUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.feign.OperAccessFeignClient; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @Description 运营端权限模块 |
||||
|
* @Author yinzuomei |
||||
|
* @Date 2020/5/21 15:47 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class OperAccessFeignClientFallback implements OperAccessFeignClient { |
||||
|
@Override |
||||
|
public Result clearOperUserAccess() { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.OPER_ACCESS_SERVER, "clearOperUserAccess"); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
Loading…
Reference in new issue