cmg
2024-04-30 3dac1b9697a7a214789cc2d95788a178a63be4aa
提交 | 用户 | age
3a875b 1 package com.hz.his.feign.service.phis;
W 2
3 import com.hx.resultTool.Result;
4 import org.springframework.cloud.openfeign.FeignClient;
5 import org.springframework.web.bind.annotation.PostMapping;
6 import org.springframework.web.bind.annotation.RequestParam;
7
8 import java.math.BigDecimal;
9
10 /**
11  * @ClassName SActivityController
12  * @Description 活动规则
13  * @Author Wrh
14  * @Date 2022/8/8 17:36
15  * @Version 1.0
16  */
314a4b 17 @FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "activity")
3a875b 18 public interface SActivityService {
W 19
20     /**
21      * 活动规则详情
22      * @param id 活动标识
23      * @return Result
24      */
25     @PostMapping(value = "/activity/detail")
26     Result getActivityDetail(@RequestParam("id") String id);
27
28
29     /**
30      * 活动规则列表
31      * @param shoId 门店标识
32      * @return Result
33      */
b22c3b 34     @PostMapping(value = "/activity/shopId/list")
dc5e3d 35     Result getActivityList(@RequestParam("shoId") String shoId,@RequestParam("appId") String appId);
3a875b 36
W 37
38     /**
39      * 校验用户是否符合活动规则
40      * @param userId 用户标识
41      * @param id 活动标识
42      * @param ordersTotal 订单总金额
43      * @return Result
44      */
e3353c 45     @PostMapping(value = "/activity/check")
435f48 46     Result check(@RequestParam("userId") String userId,@RequestParam("id") String id,
W 47                  @RequestParam("ordersTotal") BigDecimal ordersTotal,@RequestParam("shopId") String shopId);
3a875b 48
W 49
50
51 }