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