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
| package cn.iocoder.yudao.module.promotion.api.point;
|
| import cn.iocoder.yudao.module.promotion.api.point.dto.PointValidateJoinRespDTO;
|
| /**
| * 积分商城活动 API 接口
| *
| * @author HUIHUI
| */
| public interface PointActivityApi {
|
| /**
| * 【下单前】校验是否参与积分商城活动
| *
| * 如果校验失败,则抛出业务异常
| *
| * @param activityId 活动编号
| * @param skuId SKU 编号
| * @param count 数量
| * @return 积分商城商品信息
| */
| PointValidateJoinRespDTO validateJoinPointActivity(Long activityId, Long skuId, Integer count);
|
| /**
| * 更新积分商城商品库存(减少)
| *
| * @param id 活动编号
| * @param skuId sku 编号
| * @param count 数量(正数)
| */
| void updatePointStockDecr(Long id, Long skuId, Integer count);
|
| /**
| * 更新积分商城商品库存(增加)
| *
| * @param id 活动编号
| * @param skuId sku 编号
| * @param count 数量(正数)
| */
| void updatePointStockIncr(Long id, Long skuId, Integer count);
|
| }
|
|