mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
Forgot to remove list report actions.
This commit is contained in:
parent
5a8b9def6e
commit
0c854d2d3a
3 changed files with 0 additions and 79 deletions
|
@ -30,31 +30,3 @@ pub struct ResolveCommentReport {
|
||||||
pub report_id: CommentReportId,
|
pub report_id: CommentReportId,
|
||||||
pub resolved: bool,
|
pub resolved: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[skip_serializing_none]
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// List comment reports.
|
|
||||||
pub struct ListCommentReports {
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub comment_id: Option<CommentId>,
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub page: Option<i64>,
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub limit: Option<i64>,
|
|
||||||
/// Only shows the unresolved reports
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub unresolved_only: Option<bool>,
|
|
||||||
/// if no community is given, it returns reports for all communities moderated by the auth user
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub community_id: Option<CommunityId>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// The comment report list response.
|
|
||||||
pub struct ListCommentReportsResponse {
|
|
||||||
pub comment_reports: Vec<CommentReportView>,
|
|
||||||
}
|
|
||||||
|
|
|
@ -30,31 +30,3 @@ pub struct ResolvePostReport {
|
||||||
pub report_id: PostReportId,
|
pub report_id: PostReportId,
|
||||||
pub resolved: bool,
|
pub resolved: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[skip_serializing_none]
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// List post reports.
|
|
||||||
pub struct ListPostReports {
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub page: Option<i64>,
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub limit: Option<i64>,
|
|
||||||
/// Only shows the unresolved reports
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub unresolved_only: Option<bool>,
|
|
||||||
/// if no community is given, it returns reports for all communities moderated by the auth user
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub community_id: Option<CommunityId>,
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub post_id: Option<PostId>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// The post reports response.
|
|
||||||
pub struct ListPostReportsResponse {
|
|
||||||
pub post_reports: Vec<PostReportView>,
|
|
||||||
}
|
|
||||||
|
|
|
@ -30,26 +30,3 @@ pub struct ResolvePrivateMessageReport {
|
||||||
pub report_id: PrivateMessageReportId,
|
pub report_id: PrivateMessageReportId,
|
||||||
pub resolved: bool,
|
pub resolved: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[skip_serializing_none]
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// List private message reports.
|
|
||||||
pub struct ListPrivateMessageReports {
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub page: Option<i64>,
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub limit: Option<i64>,
|
|
||||||
/// Only shows the unresolved reports
|
|
||||||
#[cfg_attr(feature = "full", ts(optional))]
|
|
||||||
pub unresolved_only: Option<bool>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
|
||||||
/// The response for list private message reports.
|
|
||||||
pub struct ListPrivateMessageReportsResponse {
|
|
||||||
pub private_message_reports: Vec<PrivateMessageReportView>,
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue