CommentsService.java 2.22 KB
package com.cnlive.shenhe.service;

import com.cnlive.shenhe.dto.CommentsDTO;
import com.cnlive.shenhe.entity.ShyComments;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: yan-zhao-wang
 * @DateTime: 2022-11-01 13:10
 */
public interface CommentsService {
    /**
     * 根据评论对象获取评论集合
     *
     * @param shyComments
     * @return
     */
    List<ShyComments> findShyComments(ShyComments shyComments);

    /**
     * 修改评论 返回布尔类型
     *
     * @param shyComments
     * @return
     */
    boolean updateShyComments1(ShyComments shyComments);

    /**
     * 导入评论  返回布尔类型
     *
     * @param shyComments
     * @return
     */
    boolean impotComments(ShyComments shyComments);

    /**
     * 评论分页、条件查询
     *
     * @param commentsDTO
     * @return
     */
    PageInfo<ShyComments> getPage(CommentsDTO commentsDTO);

    /**
     * 导出Excel表格
     *
     * @param commentsDTO
     * @return
     */
    PageInfo<ShyComments> getPageExcel(CommentsDTO commentsDTO);

    /**
     * 获取评论详情
     *
     * @param id
     * @return
     */
    ShyComments getDetailsComment(Integer id);

    /**
     * 修改状态 回调 返回布尔类型
     *
     * @param ids
     * @param state
     * @param userId
     * @param updater
     * @param msg
     * @return
     */
    boolean updateState(String ids, Integer state, String userId, String updater, String msg);

    /**
     * 认领
     *
     * @param ids
     * @param num
     * @param userId
     * @param spid
     * @return
     */
    Integer receive(String ids, Integer num, String userId, Integer spid);

    /**
     * 退领
     *
     * @param ids
     * @param userId
     * @return
     */
    Integer retReceive(String ids, String userId);

    /**
     * 根据主键id查询评论对象
     *
     * @param id
     * @return
     */
    ShyComments selectByPrimaryKey(Integer id);

    /**
     * 根据主键id修改对象
     *
     * @param comments
     * @return
     */
    int updateByPrimaryKeySelective(ShyComments comments);

    /**
     * 获取审核类型
     *
     * @param shyComments
     */
    void getShenheType(ShyComments shyComments);
}