| | |
| | | package cc.mrbird.febs.server.hr.feign; |
| | | |
| | | import cc.mrbird.febs.common.core.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.core.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.core.entity.constant.FebsServerConstant; |
| | | import cc.mrbird.febs.common.core.entity.system.Dept; |
| | | import cc.mrbird.febs.common.core.entity.system.SystemUser; |
| | | import cc.mrbird.febs.server.hr.feign.fallback.RemoteDeptServiceFallback; |
| | | import cc.mrbird.febs.server.hr.feign.fallback.RemoteUserServiceFallback; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @FeignClient(value = FebsServerConstant.FEBS_SERVER_SYSTEM, contextId = "deptServiceClient", fallbackFactory = RemoteDeptServiceFallback.class) |
| | | public interface IRemoteDeptService { |
| | | // @GetMapping("dept") |
| | | // FebsResponse deptList(@RequestParam("queryRequest") QueryRequest queryRequest, @RequestParam("dept") Dept depts); |
| | | @GetMapping("dept/setDeptToRedis") |
| | | List<Dept> setDeptRedis(); |
| | | |
| | | @GetMapping("dept") |
| | | List<Dept> selectAllDept(Dept dept); |
| | | |
| | | |
| | | @GetMapping("dept/userRightDepts") |
| | | String userRightDepts(); |
| | | } |