package com.qnfhq.modules.c2c.service;

import com.qnfhq.common.page.PageData;
import com.qnfhq.common.service.BaseService;
import com.qnfhq.common.utils.Result;
import com.qnfhq.modules.c2c.entity.RatingsReviewsEntity;
import java.util.Map;

/**
 * c2c交易对象评价
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-29
 */
public interface RatingsReviewsService extends BaseService<RatingsReviewsEntity> {

    /**
     * 根据订单编号和评价人编号查询评价
     * @param orderId
     * @param inputUserId
     * @return
     */
    RatingsReviewsEntity selectByOrderIdInputUserId(Long orderId, Long inputUserId);

    /**
     * 创建评价
     * @param entity
     * @return
     */
    Result create(RatingsReviewsEntity entity) throws Exception;


    /**
     * 收到的评价
     * @param params
     * @return
     */
    PageData<RatingsReviewsEntity> selectPageByUserId(Map<String, Object> params);
}