package shop.alien.store.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.result.R;
import shop.alien.entity.store.LawyerConsultationReview;

import java.util.List;

/**
 * 咨询评价 服务类
 *
 * @author system
 * @since 2025-01-XX
 */
public interface LawyerConsultationReviewService extends IService<LawyerConsultationReview> {

    /**
     * 分页查询咨询评价列表
     *
     * @param pageNum             页码
     * @param pageSize            页容
     * @param consultationOrderId 咨询订单ID
     * @param lawyerUserId        律师用户ID
     * @param clientUserId        客户端用户ID
     * @return IPage<LawyerConsultationReview>
     */
    R<IPage<LawyerConsultationReview>> getConsultationReviewList(int pageNum, int pageSize, Integer consultationOrderId,
                                                            Integer lawyerUserId, Integer clientUserId);

    /**
     * 根据律师ID查询评价列表
     *
     * @param lawyerUserId 律师用户ID
     * @return List<LawyerConsultationReview>
     */
    List<LawyerConsultationReview> getListByLawyerId(Integer lawyerUserId);

    /**
     * 新增咨询评价
     *
     * @param consultationReview 咨询评价
     * @return R<LawyerConsultationReview>
     */
    R<LawyerConsultationReview> addConsultationReview(LawyerConsultationReview consultationReview);

    /**
     * 编辑咨询评价
     *
     * @param consultationReview 咨询评价
     * @return R<LawyerConsultationReview>
     */
    R<LawyerConsultationReview> editConsultationReview(LawyerConsultationReview consultationReview);

    /**
     * 删除咨询评价
     *
     * @param id 主键
     * @return R<Boolean>
     */
    R<Boolean> deleteConsultationReview(Integer id);
}

