ICouponService.java
1.24 KB
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
51
52
53
54
55
56
57
58
59
package com.yohoufo.promotion.service;
import com.yohobuy.ufo.model.promotion.UserCouponsListBo;
import com.yohobuy.ufo.model.promotion.response.CouponInfo;
import java.util.List;
public interface ICouponService {
public List<CouponInfo> queryCouponList(Integer uid);
public int queryCouponCnt(Integer uid);
/**
* 领取优惠券
* @param uid
* @param couponTokens
* @return
*/
public List<String> batchSendCoupon(Integer uid, String couponTokens);
/**
* 使用优惠券
* @param uid
* @param couponCodes
* @param orderCode
* @return
*/
public boolean useCoupon(Integer uid, List<String> couponCodes, long orderCode);
/**
* 退还优惠券
* @param uid
* @param couponCodes
* @param orderCode
* @return
*/
public boolean cancelCoupon(Integer uid, List<String> couponCodes, long orderCode);
/**
* 获取优惠券列表(订单)
* @param uid
* @return
*/
public UserCouponsListBo queryUserNoUsedCoupons(Integer uid);
/**
* 校验券并返回券信息
*
* @param uid
* @param couponCodes
* @return
*/
UserCouponsListBo checkAndGetCoupons(int uid, List<String> couponCodes);
}