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:
5
types.go
5
types.go
@@ -36,8 +36,9 @@ type MCPContent struct {
|
||||
|
||||
// FeedDetailRequest Feed详情请求
|
||||
type FeedDetailRequest struct {
|
||||
FeedID string `json:"feed_id" binding:"required"`
|
||||
XsecToken string `json:"xsec_token" binding:"required"`
|
||||
FeedID string `json:"feed_id" binding:"required"`
|
||||
XsecToken string `json:"xsec_token" binding:"required"`
|
||||
LoadAllComments bool `json:"load_all_comments,omitempty"`
|
||||
}
|
||||
|
||||
type SearchFeedsRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user