parent
65e0c6c112
commit
2891a7bb18
14 changed files with 99 additions and 9 deletions
@ -0,0 +1,21 @@ |
||||
package com.daqing.financial.hrauth.feign; |
||||
|
||||
import com.daqing.framework.domain.hrms.EmployeeEntity; |
||||
import com.daqing.framework.domain.hrms.RoleEntity; |
||||
import com.daqing.framework.model.response.ResponseResult; |
||||
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 = "dq-financial-hrms",contextId = "hrms") |
||||
public interface HrmsFeignService { |
||||
|
||||
@GetMapping("/hrms/employee/getEmployeeByUserId") |
||||
ResponseResult<EmployeeEntity> getEmployeeByUserId(@RequestParam("userId") Integer userId); |
||||
} |
Loading…
Reference in new issue