From d825917e63d418cef089c28f69e4474b88b03d88 Mon Sep 17 00:00:00 2001 From: wangrenhuang <wangren_huang@163.com> Date: 星期三, 03 八月 2022 20:04:58 +0800 Subject: [PATCH] 老带新优化 --- phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java | 8 ++++++++ phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java | 16 ++++++++++++++++ phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java | 23 +++++++++++++++++++++++ 3 files changed, 47 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java b/phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java new file mode 100644 index 0000000..bda847d --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java @@ -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; + +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java index 6390296..00b8005 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SMemberLevelService.java +++ b/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); + + /** + * 鑾峰彇浼氬憳绛夌骇浣i噾姣斾緥璇︽儏 + * @param memberLevelId 浼氬憳绛夌骇鏍囪瘑 + * @return Result + */ + @PostMapping(value = "/member/level/getCommissDetail") + Result getCommissDetail(@RequestParam("memberLevelId") String memberLevelId); } diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java new file mode 100644 index 0000000..07b8e9a --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipActivityService.java @@ -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 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-activity") +public interface SPhipActivityService { + + /** + * 寮�鏀惧钩鍙�-鏌ヨ娲诲姩瑙勫垯鍒楄〃(甯﹀垎椤�) + */ + @PostMapping(value = "/activity/user/activity") + Result getActivityList(@RequestBody ActivityDto activityDto); + + + +} \ No newline at end of file -- Gitblit v1.8.0