-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBookmarkDao.java
More file actions
49 lines (34 loc) · 1.6 KB
/
BookmarkDao.java
File metadata and controls
49 lines (34 loc) · 1.6 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
40
41
42
43
44
45
46
47
48
49
package com.web.SearchWeb.bookmark.dao;
import com.web.SearchWeb.bookmark.domain.Bookmark;
import com.web.SearchWeb.bookmark.domain.Link;
import com.web.SearchWeb.bookmark.dto.MemberTagResultDto;
import com.web.SearchWeb.bookmark.service.command.BookmarkSearchCommand;
import java.util.List;
public interface BookmarkDao {
//북마크 추가
int insertBookmark(Bookmark bookmark);
//북마크 단일 조회
Bookmark selectBookmark(Long memberId, Long bookmarkId);
//북마크 목록 조회
List<Bookmark> selectBookmarkList(BookmarkSearchCommand searchCommand);
//북마크 수정
int updateBookmark(Bookmark bookmark);
//북마크 삭제
int deleteBookmark(Long memberId, Long bookmarkId);
//북마크 태그 연결 삭제
int deleteBookmarkTags(Long bookmarkId, Long memberId);
//북마크 삭제 (Link ID 기반 - soft delete)
int deleteBookmarkByLink(Long memberId, Long linkId);
//북마크 링크 중복 확인 (동일 폴더에 동일 링크)
int checkBookmarkExists(Long memberId, Long folderId, Long linkId);
//링크 조회 (url로)
Link selectLinkByUrl(String url);
//링크 추가 (link 테이블)
int insertLink(Link link);
//URL 기반 북마크 존재 여부 확인 (Board Bridge용)
int checkBookmarkExistsByUrl(Long memberId, String url);
// 태그 등록 및 조회 (Insert & Select)
List<MemberTagResultDto> insertAndSelectTags(Long memberId, List<String> tagNames);
// 북마크-태그 연결 일괄 추가 (Bulk Insert)
int insertBookmarkTags(Long bookmarkId, List<Long> tagIds);
}