43 lines
1009 B
Java
43 lines
1009 B
Java
package com.emotion.service;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.emotion.common.PageResult;
|
|
import com.emotion.dto.request.comment.CommentCreateRequest;
|
|
import com.emotion.dto.request.comment.CommentUpdateRequest;
|
|
import com.emotion.dto.request.comment.CommentPageRequest;
|
|
import com.emotion.dto.response.comment.CommentResponse;
|
|
import com.emotion.entity.Comment;
|
|
|
|
/**
|
|
* 评论服务接口
|
|
*
|
|
* @author huazhongmin
|
|
* @date 2025-07-23
|
|
*/
|
|
public interface CommentService extends IService<Comment> {
|
|
|
|
/**
|
|
* 分页查询评论
|
|
*/
|
|
PageResult<CommentResponse> getPage(CommentPageRequest request);
|
|
|
|
/**
|
|
* 根据ID获取评论响应
|
|
*/
|
|
CommentResponse getById(String id);
|
|
|
|
/**
|
|
* 创建评论
|
|
*/
|
|
CommentResponse create(CommentCreateRequest request);
|
|
|
|
/**
|
|
* 更新评论
|
|
*/
|
|
CommentResponse update(CommentUpdateRequest request);
|
|
|
|
/**
|
|
* 删除评论
|
|
*/
|
|
boolean delete(String id);
|
|
} |