提交 | 用户 | 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 |
*/ |
|
17 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "activity") |
|
18 |
public interface SActivityService { |
|
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") |
3a875b
|
35 |
Result getActivityList(@RequestParam("shoId") String shoId); |
W |
36 |
|
|
37 |
|
|
38 |
/** |
|
39 |
* 校验用户是否符合活动规则 |
|
40 |
* @param userId 用户标识 |
|
41 |
* @param id 活动标识 |
|
42 |
* @param ordersTotal 订单总金额 |
|
43 |
* @return Result |
|
44 |
*/ |
|
45 |
@PostMapping(value = "/activity/list") |
f148ba
|
46 |
Result check(@RequestParam("userId") String userId,@RequestParam("id") String id,@RequestParam("ordersTotal") BigDecimal ordersTotal); |
3a875b
|
47 |
|
W |
48 |
|
|
49 |
|
|
50 |
} |