package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.ShopUserCoupon;
import com.gxwebsoft.shop.param.ShopUserCouponParam;

import java.util.List;

/**
 * 用户优惠券Service
 *
 * @author 科技小王子
 * @since 2025-08-11 23:51:41
 */
public interface ShopUserCouponService extends IService<ShopUserCoupon> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<ShopUserCoupon>
     */
    PageResult<ShopUserCoupon> pageRel(ShopUserCouponParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<ShopUserCoupon>
     */
    List<ShopUserCoupon> listRel(ShopUserCouponParam param);

    /**
     * 根据id查询
     *
     * @param id id
     * @return ShopUserCoupon
     */
    ShopUserCoupon getByIdRel(Integer id);

    List<ShopUserCoupon> userList(Integer userId);
}
