cmg
2024-04-30 314a4b858417df3d0e97049c3bf36e91cdf228ee
提交 | 用户 | age
4f4d33 1 package com.hz.his.feign.service.platform;
R 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.doctorTime.DoctorTimeDto;
5 import org.springframework.cloud.openfeign.FeignClient;
6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RequestBody;
8
9 /**
10  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
11  */
314a4b 12 @FeignClient(name="phi-platform-user",path = "/phip",contextId = "phip-doctor-time")
4f4d33 13 public interface SPhipDoctorTimeService {
R 14
15     /**
16      * 医生排班新增
17      * */
18     @PostMapping(value = "/doctor/time/add")
19     Result addDoctorTime(@RequestBody DoctorTimeDto doctorTimeDto);
20 }