| package com.stylefeng.guns.modular.system.service; | 
|   | 
| import com.baomidou.mybatisplus.service.IService; | 
| import com.stylefeng.guns.modular.system.model.UserMerchantCoupon; | 
| import com.stylefeng.guns.modular.system.util.ResultUtil; | 
| import com.stylefeng.guns.modular.system.warpper.MerchantCouponWarpper; | 
| import com.stylefeng.guns.modular.system.warpper.UserMerchantCouponWapper; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| public interface IUserMerchantCouponService extends IService<UserMerchantCoupon> { | 
|   | 
|   | 
|     /** | 
|      * 根据核销码获取商家优惠券 | 
|      * @param code | 
|      * @return | 
|      * @throws Exception | 
|      */ | 
|     ResultUtil<UserMerchantCouponWapper> getUserMerchantCoupon(Integer uid, String code) throws Exception; | 
|   | 
|   | 
|     /** | 
|      * 核销商家优惠券 | 
|      * @param code | 
|      * @return | 
|      * @throws Exception | 
|      */ | 
|     ResultUtil writeOffMerchantCoupon(Integer uid, String code) throws Exception; | 
|   | 
|   | 
|     /** | 
|      * 商家获取优惠券核销记录 | 
|      * @param id | 
|      * @param pageNum | 
|      * @param size | 
|      * @return | 
|      * @throws Exception | 
|      */ | 
|     List<Map<String, Object>> getWriteOffHistory(Integer activityId, Integer id, Integer pageNum, Integer size) throws Exception; | 
|   | 
|   | 
|     /** | 
|      * 获取我的商家券列表 | 
|      * @param uid | 
|      * @param type | 
|      * @return | 
|      * @throws Exception | 
|      */ | 
|     List<MerchantCouponWarpper> getMyMerchantCoupon(Integer uid, Integer type) throws Exception; | 
|   | 
|   | 
|     /** | 
|      * 修改过期数据 | 
|      * @throws Exception | 
|      */ | 
|     void updateExpired() throws Exception; | 
| } |