feat: 添加小红书Feed评论功能 (#50)
实现通过HTTP GIN API和MCP API发表评论到小红书Feed的功能: - 新增POST /api/v1/feeds/comment端点 - 新增post_comment_to_feed MCP工具 - 添加PostCommentRequest和PostCommentResponse类型 - 实现PostCommentToFeed服务方法 - 新增CommentFeedAction用于浏览器自动化操作 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
14
types.go
14
types.go
@@ -72,3 +72,17 @@ type FeedDetailResponse struct {
|
||||
FeedID string `json:"feed_id"`
|
||||
Data any `json:"data"`
|
||||
}
|
||||
|
||||
// PostCommentRequest 发表评论请求
|
||||
type PostCommentRequest struct {
|
||||
FeedID string `json:"feed_id" binding:"required"`
|
||||
XsecToken string `json:"xsec_token" binding:"required"`
|
||||
Content string `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
// PostCommentResponse 发表评论响应
|
||||
type PostCommentResponse struct {
|
||||
FeedID string `json:"feed_id"`
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user