- 新增 CollectionNoteService、CollectionService、CommentService等多个服务接口 - 实现 CategoryService、NoteLikeService等多个服务类 - 添加事务注解以确保数据一致性- 新增 StatisticQueryParam 类用于统计查询参数
17 lines
476 B
Java
17 lines
476 B
Java
package com.example.copykamanotes.service;
|
|
|
|
|
|
import com.example.copykamanotes.model.base.ApiResponse;
|
|
import com.example.copykamanotes.model.base.EmptyVO;
|
|
import com.example.copykamanotes.model.entity.NoteComment;
|
|
|
|
import java.util.List;
|
|
|
|
public interface NoteCommentService {
|
|
ApiResponse<EmptyVO> createComment(Integer noteId, String content);
|
|
|
|
ApiResponse<EmptyVO> deleteComment(Integer commentId);
|
|
|
|
ApiResponse<List<NoteComment>> getComments(Integer noteId);
|
|
}
|