提交 | 用户 | age
|
0493e0
|
1 |
package com.hz.crm.feign; |
W |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
1e8ba4
|
4 |
import com.hz.crm.dto.IdDto; |
0493e0
|
5 |
import com.hz.crm.dto.PageDto; |
W |
6 |
import com.hz.crm.dto.coupon.CouponGoodsDto; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
949cfe
|
14 |
@FeignClient(name="crm-user",path = "/crm-platform",contextId = "crm-doctorTime") |
0493e0
|
15 |
public interface FDoctorTimeService { |
W |
16 |
|
|
17 |
@PostMapping(value = "/doctor/time/sync") |
1e8ba4
|
18 |
Result syncDoctorTime( @RequestBody(required = false) IdDto dto); |
0493e0
|
19 |
|
b9c956
|
20 |
@PostMapping(value = "/doctor/time/check") |
W |
21 |
Result check( @RequestBody(required = false) IdDto dto); |
0493e0
|
22 |
} |