远程接口调用
parent
8279b54441
commit
e23f95ad73
|
@ -0,0 +1,18 @@
|
|||
package com.four.patient.feign;
|
||||
|
||||
import com.four.common.core.web.domain.AjaxResult;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@FeignClient("four-system")
|
||||
public interface DoctorNumberFeign {
|
||||
/**
|
||||
* 查询好评人数倒序的医生信息
|
||||
* @param medicalDepartmentId;
|
||||
* @author 李闯
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/user/findDoctorNumber/{medicalDepartmentId}")
|
||||
public AjaxResult findDoctorNumber(@PathVariable Long medicalDepartmentId);
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.four.patient.feign;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
|
||||
@FeignClient("four-system")
|
||||
public interface DoctorPrice {
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.four.patient.feign;
|
||||
|
||||
import com.four.common.core.web.domain.AjaxResult;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
@FeignClient("four-system")
|
||||
public interface UserFeign {
|
||||
|
||||
@GetMapping("/user/findByuserId/{userId}")public AjaxResult findByUserId(@PathVariable("userId") Long userId);
|
||||
}
|
Loading…
Reference in New Issue