package types type CreateComment struct { Content string `json:"content,omitempty" url:"content,omitempty"` PostID int `json:"post_id,omitempty" url:"post_id,omitempty"` ParentID Optional[int] `json:"parent_id,omitempty" url:"parent_id,omitempty"` FormID Optional[string] `json:"form_id,omitempty" url:"form_id,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type GetComment struct { ID int `json:"id,omitempty" url:"id,omitempty"` Auth Optional[string] `json:"auth,omitempty" url:"auth,omitempty"` } type EditComment struct { Content string `json:"content,omitempty" url:"content,omitempty"` CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` FormID Optional[string] `json:"form_id,omitempty" url:"form_id,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type DeleteComment struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Deleted bool `json:"deleted,omitempty" url:"deleted,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type RemoveComment struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Removed bool `json:"removed,omitempty" url:"removed,omitempty"` Reason Optional[string] `json:"reason,omitempty" url:"reason,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type MarkCommentAsRead struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Read bool `json:"read,omitempty" url:"read,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type SaveComment struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Save bool `json:"save,omitempty" url:"save,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type CommentResponse struct { CommentView CommentView `json:"comment_view,omitempty" url:"comment_view,omitempty"` RecipientIds []int `json:"recipient_ids,omitempty" url:"recipient_ids,omitempty"` FormID Optional[string] `json:"form_id,omitempty" url:"form_id,omitempty"` LemmyResponse } type CreateCommentLike struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Score int16 `json:"score,omitempty" url:"score,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type GetComments struct { Type Optional[ListingType] `json:"type_,omitempty" url:"type_,omitempty"` Sort Optional[SortType] `json:"sort,omitempty" url:"sort,omitempty"` Page Optional[int64] `json:"page,omitempty" url:"page,omitempty"` Limit Optional[int64] `json:"limit,omitempty" url:"limit,omitempty"` CommunityID Optional[int] `json:"community_id,omitempty" url:"community_id,omitempty"` CommunityName Optional[string] `json:"community_name,omitempty" url:"community_name,omitempty"` SavedOnly Optional[bool] `json:"saved_only,omitempty" url:"saved_only,omitempty"` Auth Optional[string] `json:"auth,omitempty" url:"auth,omitempty"` } type GetCommentsResponse struct { Comments []CommentView `json:"comments,omitempty" url:"comments,omitempty"` LemmyResponse } type CreateCommentReport struct { CommentID int `json:"comment_id,omitempty" url:"comment_id,omitempty"` Reason string `json:"reason,omitempty" url:"reason,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type CommentReportResponse struct { CommentReportView CommentReportView `json:"comment_report_view,omitempty" url:"comment_report_view,omitempty"` LemmyResponse } type ResolveCommentReport struct { ReportID int `json:"report_id,omitempty" url:"report_id,omitempty"` Resolved bool `json:"resolved,omitempty" url:"resolved,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type ListCommentReports struct { Page Optional[int64] `json:"page,omitempty" url:"page,omitempty"` Limit Optional[int64] `json:"limit,omitempty" url:"limit,omitempty"` UnresolvedOnly Optional[bool] `json:"unresolved_only,omitempty" url:"unresolved_only,omitempty"` CommunityID Optional[int] `json:"community_id,omitempty" url:"community_id,omitempty"` Auth string `json:"auth,omitempty" url:"auth,omitempty"` } type ListCommentReportsResponse struct { CommentReports []CommentReportView `json:"comment_reports,omitempty" url:"comment_reports,omitempty"` LemmyResponse }