From 11de66f8a38c3a23fd956cdcca0f9cae26f08f8f Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期四, 30 五月 2024 18:25:27 +0800 Subject: [PATCH] 1.新增秒杀日历dto --- phis-feign/src/main/java/com/hz/his/dto/activity/SecKillActivityDto.java | 2 ++ phis-feign/src/main/java/com/hz/his/feign/service/phis/SSecKillActivityService.java | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/activity/SecKillActivityDto.java b/phis-feign/src/main/java/com/hz/his/dto/activity/SecKillActivityDto.java index 3377b2a..ac8996d 100644 --- a/phis-feign/src/main/java/com/hz/his/dto/activity/SecKillActivityDto.java +++ b/phis-feign/src/main/java/com/hz/his/dto/activity/SecKillActivityDto.java @@ -16,6 +16,8 @@ /** 鐢ㄦ埛id */ private String userId; +// /** 鏄惁妫�鏌ュ彲瑙佷汉缇ら檺鍒�(0鍚�1鏄�) */ +// private Integer isChekSeeLimit = 0; /** 鍙浜虹兢 - 娑堣垂闄愬埗閲戦(0涓嶉檺鍒�) */ private BigDecimal seeLcAmount; /** 鍙浜虹兢 - 闂ㄥ簵id */ diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SSecKillActivityService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SSecKillActivityService.java new file mode 100644 index 0000000..f2be8b4 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SSecKillActivityService.java @@ -0,0 +1,25 @@ +package com.hz.his.feign.service.phis; + +import com.hx.resultTool.Result; +import com.hz.his.dto.activity.SecKillActivityDto; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 绉掓潃鏃ュ巻娲诲姩 + * @USER: fhx + * @DATE: 2024/5/30 + **/ +@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "sec-kill-activity") +public interface SSecKillActivityService { + + /** 妫�鏌ユ槸鍚︾鍚堝彲瑙佷汉缇ら檺鍒� */ + @PostMapping(value = "/sec/kill/activity/check/see/crowd/limit") + Result checkSeeCrowdLimit(@RequestBody SecKillActivityDto dto); + + /** 妫�鏌ユ槸鍚︾鍚堝彲璐拱浜虹兢闄愬埗 */ + @PostMapping(value = "/sec/kill/activity/check/buy/crowd/limit") + Result checkBuyCrowdLimit(@RequestBody SecKillActivityDto dto); + +} -- Gitblit v1.8.0