package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 礼品卡Service
 *
 * @author 科技小王子
 * @since 2025-08-11 18:07:31
 */
public interface ShopGiftService extends IService<ShopGift> {

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

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

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

    ShopGift getByCode(String code);
}
