提交 | 用户 | age
|
d82591
|
1 |
package com.hz.his.feign.service.platform; |
W |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.activity.ActivityDto; |
|
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 |
*/ |
39a067
|
12 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-activity") |
d82591
|
13 |
public interface SPhipActivityService { |
W |
14 |
|
|
15 |
/** |
|
16 |
* 开放平台-查询活动规则列表(带分页) |
|
17 |
*/ |
|
18 |
@PostMapping(value = "/activity/user/activity") |
|
19 |
Result getActivityList(@RequestBody ActivityDto activityDto); |
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
} |