mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 00:14:03 +00:00
42 lines
742 B
Rust
42 lines
742 B
Rust
use lemmy_db_schema::{CommunityId, PostId};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct UserJoin {
|
|
pub auth: String,
|
|
}
|
|
|
|
#[derive(Serialize, Clone)]
|
|
pub struct UserJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct CommunityJoin {
|
|
pub community_id: CommunityId,
|
|
}
|
|
|
|
#[derive(Serialize, Clone)]
|
|
pub struct CommunityJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct ModJoin {
|
|
pub community_id: CommunityId,
|
|
}
|
|
|
|
#[derive(Serialize, Clone)]
|
|
pub struct ModJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct PostJoin {
|
|
pub post_id: PostId,
|
|
}
|
|
|
|
#[derive(Serialize, Clone)]
|
|
pub struct PostJoinResponse {
|
|
pub joined: bool,
|
|
}
|