Skip to content

Commit 0f05a0f

Browse files
committed
[feat] #208 amplitude - 링크, 폴더 상세보기
1 parent 9f475f4 commit 0f05a0f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Projects/CoreKit/Sources/Data/Network/Category/CategoryClient+LiveKey.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ extension CategoryClient: DependencyKey {
4444
try await provider.request(.유저_카테고리_개수_조회)
4545
},
4646
카테고리_상세_조회: { id in
47-
try await provider.request(.카테고리_상세_조회(categoryId: id))
47+
amplitudeTrack(.view_folder_detail(folderId: id))
48+
return try await provider.request(.카테고리_상세_조회(categoryId: id))
4849
},
4950
공유받은_카테고리_조회: { id, model in
5051
try await provider.request(.공유받은_카테고리_조회(categoryId: id, model: model))

Projects/CoreKit/Sources/Data/Network/Content/ContentClient+LiveKey.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ extension ContentClient: DependencyKey {
1818
try await provider.requestNoBody(.컨텐츠_삭제(contentId: id))
1919
},
2020
컨텐츠_상세_조회: { id in
21-
try await provider.request(.컨텐츠_상세_조회(contentId: id))
21+
let response: ContentDetailResponse
22+
response = try await provider.request(.컨텐츠_상세_조회(contentId: id))
23+
amplitudeTrack(.view_link_detail(
24+
linkId: "\(id)",
25+
linkDomain: response.data
26+
))
27+
return response
2228
},
2329
컨텐츠_수정: { id, model in
2430
try await provider.request(.컨텐츠_수정(contentId: id, model: model))

0 commit comments

Comments
 (0)