package com.gxwebsoft.house.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.yulichang.base.MPJBaseService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.house.entity.HouseLikeLog;
import com.gxwebsoft.house.param.HouseLikeLogParam;

import java.util.List;

/**
 * 房源点赞表Service
 *
 * @author 科技小王子
 * @since 2025-03-05 13:47:14
 */
public interface HouseLikeLogService extends MPJBaseService<HouseLikeLog> {

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

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

    /**
     * 根据id查询
     *
     * @param houseId ID
     * @return LikeLog
     */
    HouseLikeLog getByIdRel(Integer houseId, Integer userId);

    boolean add(HouseLikeLog likeLog);

}
