提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
|
|
4 |
import com.hx.resultTool.Result; |
|
5 |
import com.hz.his.dto.PageDto; |
|
6 |
import com.hz.phis.dt.member.MemberDt; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestParam; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "memberLevel") |
|
16 |
public interface SMemberLevelService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取会员等级详情 |
|
20 |
* @param memberLevelId 会员等级标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/member/level/detail") |
|
24 |
Result getMemberLevelDetail(@RequestParam("memberLevelId") String memberLevelId); |
|
25 |
|
|
26 |
/** |
|
27 |
* 查询会员等级列表 |
|
28 |
*/ |
|
29 |
@PostMapping(value = "/member/level/list") |
|
30 |
Result getMemberLevelList(@RequestBody(required = false) MemberDt pageDto); |
|
31 |
} |