|
@ -3,11 +3,14 @@ package com.epmet.feign; |
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.form.InitDefaultOperationsFormDTO; |
|
|
import com.epmet.dto.form.InitDefaultOperationsFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.ListOpePermsFormDTO; |
|
|
import com.epmet.feign.fallback.GovAccessFeignClientFallBack; |
|
|
import com.epmet.feign.fallback.GovAccessFeignClientFallBack; |
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
//@FeignClient(name = ServiceConstant.GOV_ACCESS_SERVER, fallback = GovAccessFeignClientFallBack.class, url = "http://localhost:8099")
|
|
|
//@FeignClient(name = ServiceConstant.GOV_ACCESS_SERVER, fallback = GovAccessFeignClientFallBack.class, url = "http://localhost:8099")
|
|
|
@FeignClient(name = ServiceConstant.GOV_ACCESS_SERVER, fallback = GovAccessFeignClientFallBack.class) |
|
|
@FeignClient(name = ServiceConstant.GOV_ACCESS_SERVER, fallback = GovAccessFeignClientFallBack.class) |
|
|
public interface GovAccessFeignClient { |
|
|
public interface GovAccessFeignClient { |
|
@ -20,4 +23,10 @@ public interface GovAccessFeignClient { |
|
|
@PostMapping("/gov/access/role/initdefaultoperationsforroles") |
|
|
@PostMapping("/gov/access/role/initdefaultoperationsforroles") |
|
|
Result initDefaultOperationsForRoles(@RequestBody InitDefaultOperationsFormDTO formDTO); |
|
|
Result initDefaultOperationsForRoles(@RequestBody InitDefaultOperationsFormDTO formDTO); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 列出觉得的功能权限列表 |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("/gov/access/access/listoperationpermissions") |
|
|
|
|
|
Result<Set<String>> listOperationPermissions(@RequestBody ListOpePermsFormDTO listOpePermsFormDTO); |
|
|
} |
|
|
} |
|
|