package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 商品文章Service
 *
 * @author 科技小王子
 * @since 2025-08-13 05:14:53
 */
public interface ShopArticleService extends IService<ShopArticle> {

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

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

    /**
     * 根据id查询
     *
     * @param articleId 文章ID
     * @return ShopArticle
     */
    ShopArticle getByIdRel(Integer articleId);

}
