-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPickCommentService.java
More file actions
39 lines (30 loc) · 2.14 KB
/
PickCommentService.java
File metadata and controls
39 lines (30 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.dreamypatisiel.devdevdev.domain.service.pick;
import com.dreamypatisiel.devdevdev.domain.entity.enums.PickOptionType;
import com.dreamypatisiel.devdevdev.domain.repository.pick.PickCommentSort;
import com.dreamypatisiel.devdevdev.domain.service.pick.dto.PickCommentDto;
import com.dreamypatisiel.devdevdev.web.dto.SliceCustom;
import com.dreamypatisiel.devdevdev.web.dto.response.pick.PickCommentRecommendResponse;
import com.dreamypatisiel.devdevdev.web.dto.response.pick.PickCommentResponse;
import com.dreamypatisiel.devdevdev.web.dto.response.pick.PickCommentsResponse;
import java.util.EnumSet;
import java.util.List;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
public interface PickCommentService {
String MODIFY = "수정";
String REGISTER = "작성";
String DELETE = "삭제";
String RECOMMEND = "추천";
PickCommentResponse registerPickComment(Long pickId, PickCommentDto pickRegisterCommentDto, Authentication authentication);
PickCommentResponse registerPickRepliedComment(Long pickParentCommentId, Long pickCommentOriginParentId,
Long pickId, PickCommentDto pickRegisterRepliedCommentDto,
Authentication authentication);
PickCommentResponse modifyPickComment(Long pickCommentId, Long pickId, PickCommentDto pickModifyCommentDto,
Authentication authentication);
PickCommentResponse deletePickComment(Long pickCommentId, Long pickId, Authentication authentication);
SliceCustom<PickCommentsResponse> findPickComments(Pageable pageable, Long pickId, Long pickCommentId,
PickCommentSort pickCommentSort, EnumSet<PickOptionType> pickOptionTypes,
Authentication authentication);
PickCommentRecommendResponse recommendPickComment(Long pickId, Long pickCommendId, Authentication authentication);
List<PickCommentsResponse> findPickBestComments(int size, Long pickId, Authentication authentication);
}