package com.gxwebsoft.shop.service;

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

import java.util.List;

/**
 * 用户记录表Service
 *
 * @author 科技小王子
 * @since 2026-02-10 00:37:07
 */
public interface ShopUserService extends IService<ShopUser> {

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

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

    /**
     * 根据id查询
     *
     * @param userId 用户id
     * @return ShopUser
     */
    ShopUser getByIdRel(Integer userId);

}
