X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_views_moderator%2Fsrc%2Fstructs.rs;h=ebe93399c0063aba7cdb9c61d79ab15ba220a931;hb=4e12e25c59beef296c750fec640b0b80c4c11de9;hp=9d525b57b11e9d5440797f032e8d0cd6852c6dbd;hpb=5b7376512fbc99b69b56618a1cf78e6cb090b563;p=lemmy.git diff --git a/crates/db_views_moderator/src/structs.rs b/crates/db_views_moderator/src/structs.rs index 9d525b57..ebe93399 100644 --- a/crates/db_views_moderator/src/structs.rs +++ b/crates/db_views_moderator/src/structs.rs @@ -2,6 +2,10 @@ use lemmy_db_schema::source::{ comment::Comment, community::CommunitySafe, moderator::{ + AdminPurgeComment, + AdminPurgeCommunity, + AdminPurgePerson, + AdminPurgePost, ModAdd, ModAddCommunity, ModBan, @@ -104,3 +108,29 @@ pub struct ModTransferCommunityView { pub community: CommunitySafe, pub modded_person: PersonSafeAlias1, } + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct AdminPurgeCommentView { + pub admin_purge_comment: AdminPurgeComment, + pub admin: PersonSafe, + pub post: Post, +} + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct AdminPurgeCommunityView { + pub admin_purge_community: AdminPurgeCommunity, + pub admin: PersonSafe, +} + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct AdminPurgePersonView { + pub admin_purge_person: AdminPurgePerson, + pub admin: PersonSafe, +} + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct AdminPurgePostView { + pub admin_purge_post: AdminPurgePost, + pub admin: PersonSafe, + pub community: CommunitySafe, +}