package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 用户在商家中的代金券Service
 *
 * @author 科技小王子
 * @since 2024-11-20 01:55:04
 */
public interface UserGoodsInMerchantService extends IService<UserGoodsInMerchant> {

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

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

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


    UserGoodsInMerchant infoInMerchant(Integer packageId, Integer userId);
}
