华为云处理
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.njcn</groupId>
|
||||
<artifactId>common-microservice</artifactId>
|
||||
<artifactId>${micro.sdk}</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.PathVariable;
|
||||
* @version 1.0.0
|
||||
* @date 2021年12月15日 13:27
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.USER, path = "/authClient", fallbackFactory = AuthClientFeignClientFallbackFactory.class)
|
||||
@FeignClient(value = ServerInfo.USER, path = "/authClient", fallbackFactory = AuthClientFeignClientFallbackFactory.class,contextId = "authClient")
|
||||
public interface AuthClientFeignClient {
|
||||
|
||||
|
||||
|
||||
@@ -16,16 +16,19 @@ import java.util.List;
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2022/1/11
|
||||
* 部门相关业务对外接口
|
||||
* 部门相关业务对外接口
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.USER,
|
||||
// url = "http://127.0.0.1:10201",
|
||||
path = "/dept", fallbackFactory = DeptFeignClientFallbackFactory.class)
|
||||
path = "/dept", fallbackFactory = DeptFeignClientFallbackFactory.class,
|
||||
contextId = "dept"
|
||||
)
|
||||
public interface DeptFeignClient {
|
||||
|
||||
/**
|
||||
* 根据条件获取后代部门索引
|
||||
* @param id 部门id
|
||||
*
|
||||
* @param id 部门id
|
||||
* @param type 指定部门类型
|
||||
* @return 后代部门索引
|
||||
*/
|
||||
@@ -34,18 +37,20 @@ public interface DeptFeignClient {
|
||||
|
||||
/**
|
||||
* 根据区域获取部门id
|
||||
*
|
||||
* @param area
|
||||
* @author xy
|
||||
* @return
|
||||
* @author xy
|
||||
*/
|
||||
@GetMapping("/getDeptIdByArea")
|
||||
HttpResult<String> getDeptIdByArea(@RequestParam("area") String area);
|
||||
|
||||
/**
|
||||
* 根据部门id获取区域id
|
||||
*
|
||||
* @param deptId
|
||||
* @author denghuajun
|
||||
* @return
|
||||
* @author denghuajun
|
||||
*/
|
||||
@GetMapping("/getAreaIdByDeptId")
|
||||
HttpResult<String> getAreaIdByDeptId(@RequestParam("deptId") String deptId);
|
||||
@@ -81,7 +86,6 @@ public interface DeptFeignClient {
|
||||
HttpResult<List<String>> getDepSonSelfCodetByDeptId(@RequestParam("deptId") String deptId);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据部门id获取子部门ids
|
||||
*/
|
||||
@@ -107,12 +111,12 @@ public interface DeptFeignClient {
|
||||
HttpResult<Dept> getRootDept();
|
||||
|
||||
/**
|
||||
* @Description: 获取当前部门的的下级子部门list,如果没子部门就是返回当前部门
|
||||
* @Param: [deptId]
|
||||
* @return: com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.user.pojo.po.Dept>>
|
||||
* @Author: clam
|
||||
* @Date: 2023/1/10
|
||||
*/
|
||||
* @Description: 获取当前部门的的下级子部门list,如果没子部门就是返回当前部门
|
||||
* @Param: [deptId]
|
||||
* @return: com.njcn.common.pojo.response.HttpResult<java.util.List < com.njcn.user.pojo.po.Dept>>
|
||||
* @Author: clam
|
||||
* @Date: 2023/1/10
|
||||
*/
|
||||
@GetMapping("/getDepSonDetailIdByDeptId")
|
||||
HttpResult<List<DeptDTO>> getDepSonDetailByDeptId(@RequestParam("deptId")String deptId) ;
|
||||
HttpResult<List<DeptDTO>> getDepSonDetailByDeptId(@RequestParam("deptId") String deptId);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.PutMapping;
|
||||
* @version 1.0.0
|
||||
* @date 2021年05月08日 15:11
|
||||
*/
|
||||
@FeignClient(value = ServerInfo.USER,path = "/user",fallbackFactory = UserFeignClientFallbackFactory.class)
|
||||
@FeignClient(value = ServerInfo.USER,path = "/user",fallbackFactory = UserFeignClientFallbackFactory.class,contextId = "user")
|
||||
public interface UserFeignClient {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user