wangrenhuang
2023-05-22 9f29abe0654aa7c5566883329395f6ee22877ead
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3
4 import com.hx.resultTool.Result;
f5bce1 5 import com.hz.his.dto.member.MemberDto;
7c680b 6 import org.springframework.cloud.openfeign.FeignClient;
C 7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9 import org.springframework.web.bind.annotation.RequestParam;
10
11 /**
12  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
13  */
14 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "memberLevel")
15 public interface SMemberLevelService {
16
17     /**
18      * 获取会员等级详情
19      * @param memberLevelId 会员等级标识
20      * @return Result
21      */
22     @PostMapping(value = "/member/level/detail")
23     Result getMemberLevelDetail(@RequestParam("memberLevelId") String memberLevelId);
24
25     /**
26      * 查询会员等级列表
27      */
28     @PostMapping(value = "/member/level/list")
f5bce1 29     Result getMemberLevelList(@RequestBody(required = false) MemberDto memberDto);
7f02d5 30
W 31     /**
32      * 根据会员名称查询会员等级详情
33      * @param memberLeveName 会员等级名称
34      * @return Result
35      */
36     @PostMapping(value = "/member/level/findMenberByName")
37     Result findMenberByName(@RequestParam("memberLeveName") String memberLeveName);
d82591 38
W 39     /**
40      * 获取会员等级佣金比例详情
41      * @param memberLevelId 会员等级标识
42      * @return Result
43      */
44     @PostMapping(value = "/member/level/getCommissDetail")
45     Result getCommissDetail(@RequestParam("memberLevelId") String memberLevelId);
7c680b 46 }