fwq
2024-04-24 1b6aaa7d6c379ccdb0870a36f848c1f811577bf0
提交 | 用户 | age
f51e4d 1 package com.hz.his.feign.service.platform;
W 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.employee.EmployeeScheduleDto;
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  */
12 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-employeeSchedule")
13 public interface SPhipEmployeeScheduleService {
14
15     /**
16      * 员工排班列表
17      */
18     @PostMapping(value = "/employee/schedule/list")
19     Result list(@RequestBody EmployeeScheduleDto employeeScheduleDto);
20
21
22
23     /**
24      * 员工排班时间信息
25      */
26     @PostMapping(value = "/employee/schedule/info")
27     Result info(@RequestBody EmployeeScheduleDto employeeScheduleDto);
28
29
30 }