feat(content): 新增内容类型与首页分类 feed

This commit is contained in:
Zhou Weidong committed 2026-10-21 15:40:19 +08:00
1 parent d9cdbc8e15
commit 1052b97306
19 files changed
+557 -4

No files matched your search

@@ -52,6 +52,7 @@ class DramaControllerContractTest {
.andExpect(jsonPath("$.code").value(0))
.andExpect(jsonPath("$.data.list[0].likeCount").value("3200"))
.andExpect(jsonPath("$.data.list[0].favoriteCount").value("1800"))
.andExpect(jsonPath("$.data.list[0].dramaType").value("ANIME"))
.andExpect(jsonPath("$.data.list[0].commentCount").value("11"))
.andExpect(jsonPath("$.data.list[1].likeCount").value("120"))
.andExpect(jsonPath("$.data.list[1].favoriteCount").value("80"))
@@ -69,6 +70,7 @@ class DramaControllerContractTest {
.andExpect(status().isOk())
.andExpect(jsonPath("$.data.likeCount").value("3200"))
.andExpect(jsonPath("$.data.favoriteCount").value("1800"))
.andExpect(jsonPath("$.data.dramaType").value("ANIME"))
.andExpect(jsonPath("$.data.commentCount").value("11"));
}
@@ -78,6 +80,7 @@ class DramaControllerContractTest {
drama.setTitle("短剧" + id);
drama.setLikeCount(likeCount);
drama.setFavoriteCount(favoriteCount);
drama.setDramaType("ANIME");
return drama;
}
}