package com.stylefeng.guns.modular.system.service; import com.baomidou.mybatisplus.service.IService; import com.stylefeng.guns.modular.system.model.UserCouponRecord; import com.stylefeng.guns.modular.system.util.ResultUtil; import java.util.List; import java.util.Map; public interface IUserCouponRecordService extends IService { /** * 获取可用优惠券数量 * @param uid * @param companyId * @param state * @param couponUseType * @return * @throws Exception */ int queryAvailable(Integer uid, Integer companyId, Integer state, Integer couponUseType, Double money) throws Exception; /** * 获取优惠券列表 * @return * @throws Exception */ List> queryCoupon(Integer uid, Integer companyId, Integer state, Integer couponUseType, Double money, Integer pageNum, Integer size) throws Exception; /** * 获取优惠券列表 * @param pageNum * @param size * @param uid * @return * @throws Exception */ List> queryMyCoupons(Integer state, Integer pageNum, Integer size, Integer uid) throws Exception; /** * 删除优惠券 * @param id * @param uid * @throws Exception */ ResultUtil delMyCoupon(Integer id, Integer uid) throws Exception; /** * 赠送优惠券 * @param id * @param uid * @param userId * @return * @throws Exception */ ResultUtil handselCoupon(Integer id, Integer uid, Integer userId) throws Exception; /** * 修改过期的优惠券状态 * @throws Exception */ void updateTimeOut() throws Exception; }