phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java
New file @@ -0,0 +1,16 @@ package com.hz.his.dto.activity; import com.hz.his.dto.PageDto; import lombok.Data; /** * 活动规则发送参数 * @author wrh */ @Data public class ActivityDto extends PageDto { /**门店标识 */ private String shopId; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java
@@ -35,4 +35,12 @@ */ @PostMapping(value = "/member/level/findMenberByName") Result findMenberByName(@RequestParam("memberLeveName") String memberLeveName); /** * 获取会员等级佣金比例详情 * @param memberLevelId 会员等级标识 * @return Result */ @PostMapping(value = "/member/level/getCommissDetail") Result getCommissDetail(@RequestParam("memberLevelId") String memberLevelId); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java
New file @@ -0,0 +1,23 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.activity.ActivityDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-activity") public interface SPhipActivityService { /** * 开放平台-查询活动规则列表(带分页) */ @PostMapping(value = "/activity/user/activity") Result getActivityList(@RequestBody ActivityDto activityDto); }