refactor: 重命名 backend-single 目录为 server
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user