package com.sptg.estate.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.dto.UserFeedbackDto;
import com.sptg.estate.api.entity.UserFeedback;

public interface UserFeedbackServiceInterface extends IService<UserFeedback> {

    /**
     * 分页查询
     * @param userFeedbackDto
     * @return
     */
    ResultBean<Page<UserFeedback>> pagingQuery (UserFeedbackDto userFeedbackDto);

    /**
     * 添加反馈
     * @param userFeedbackDto
     * @return
     */
    ResultBean<Boolean> add (UserFeedbackDto userFeedbackDto);

    /**
     * 获取一条反馈记录
     * @param userFeedbackDto
     * @return
     */
    ResultBean<UserFeedback> getOne (UserFeedbackDto userFeedbackDto);

    /**
     * 处理反馈
     * @param userFeedbackDto
     * @return
     */
    ResultBean<Boolean> handle (UserFeedbackDto userFeedbackDto);
}
