"优化评论反馈逻辑:简化回复按钮查找和点击流程
This commit is contained in:
18
types.go
18
types.go
@@ -58,6 +58,24 @@ type PostCommentResponse struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// ReplyCommentRequest 回复评论请求
|
||||
type ReplyCommentRequest struct {
|
||||
FeedID string `json:"feed_id" binding:"required"`
|
||||
XsecToken string `json:"xsec_token" binding:"required"`
|
||||
CommentID string `json:"comment_id" binding:"required_without=UserID"`
|
||||
UserID string `json:"user_id" binding:"required_without=CommentID"`
|
||||
Content string `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
// ReplyCommentResponse 回复评论响应
|
||||
type ReplyCommentResponse struct {
|
||||
FeedID string `json:"feed_id"`
|
||||
TargetCommentID string `json:"target_comment_id,omitempty"`
|
||||
TargetUserID string `json:"target_user_id,omitempty"`
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// UserProfileRequest 用户主页请求
|
||||
type UserProfileRequest struct {
|
||||
UserID string `json:"user_id" binding:"required"`
|
||||
|
||||
Reference in New Issue
Block a user