feat(feed_detail): add loadAllComments parameter to GetFeedDetail functionality
- Enhanced GetFeedDetail method to support loading all comments based on the new loadAllComments parameter. - Updated related handlers and request structures to accommodate the new parameter. - Improved logging to reflect the loading of all comments during feed detail retrieval. - Implemented JavaScript logic to scroll and collect comments when loadAllComments is true.
This commit is contained in:
@@ -165,7 +165,7 @@ func (s *AppServer) getFeedDetailHandler(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 获取 Feed 详情
|
||||
result, err := s.xiaohongshuService.GetFeedDetail(c.Request.Context(), req.FeedID, req.XsecToken)
|
||||
result, err := s.xiaohongshuService.GetFeedDetail(c.Request.Context(), req.FeedID, req.XsecToken, req.LoadAllComments)
|
||||
if err != nil {
|
||||
respondError(c, http.StatusInternalServerError, "GET_FEED_DETAIL_FAILED",
|
||||
"获取Feed详情失败", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user