| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.activity.entity.UserCoupon; |
| | | import com.dsh.activity.model.CouponListVo; |
| | | import com.dsh.activity.model.CouponDeductionQuery; |
| | | import com.dsh.activity.model.CouponDeductionVO; |
| | | import com.dsh.activity.model.request.CouponPackageReq; |
| | | import com.dsh.activity.model.response.CouponPackageResp; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface UserCouponService extends IService<UserCoupon> { |
| | | |
| | | |
| | | /** |
| | | * 获取购买课程可用优惠券列表 |
| | | * |
| | | * @param uid |
| | | * @param coursePackageId |
| | | * @return |
| | | */ |
| | | List<CouponListVo> queryAvailableCouponList(Integer uid, Integer coursePackageId, Double price, String lon, String lat) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 获取预约场地支付页面可用优惠券列表 |
| | | * |
| | | * @param siteId |
| | | * @param price |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | List<CouponListVo> querySiteCouponList(Integer uid, Integer siteId, Double price, String lon, String lat) throws Exception; |
| | | |
| | | /** 获取指定门店、指定订单金额可使用的优惠券(门票、惠民卡支付页复用)。 */ |
| | | List<CouponListVo> queryStoreCouponList(Integer uid, Integer storeId, Double price, String lon, String lat) throws Exception; |
| | | |
| | | |
| | | List<CouponPackageResp> queryCouponPackagesList(Integer uid, CouponPackageReq req); |
| | | |
| | | /** |
| | | * 批量查询已核销用户优惠券的抵扣金额。 |
| | | * |
| | | * @param query 用户优惠券领取记录 ID 集合 |
| | | * @return 每条领取记录对应的抵扣金额 |
| | | */ |
| | | List<CouponDeductionVO> queryDeductionAmounts(CouponDeductionQuery query); |
| | | } |