add: communities is_forum
This commit is contained in:
parent
9a128a3f0c
commit
1f545a0b21
9 changed files with 52 additions and 4 deletions
|
@ -26,6 +26,7 @@ pub struct Community {
|
|||
pub member_count: usize,
|
||||
pub is_forge: bool,
|
||||
pub post_count: usize,
|
||||
pub is_forum: bool,
|
||||
}
|
||||
|
||||
impl Community {
|
||||
|
@ -48,6 +49,7 @@ impl Community {
|
|||
member_count: 0,
|
||||
is_forge: false,
|
||||
post_count: 0,
|
||||
is_forum: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,6 +70,7 @@ impl Community {
|
|||
member_count: 0,
|
||||
is_forge: false,
|
||||
post_count: 0,
|
||||
is_forum: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -515,3 +518,13 @@ impl PollVote {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ForumTopic {
|
||||
pub id: usize,
|
||||
pub created: usize,
|
||||
pub owner: usize,
|
||||
pub community: usize,
|
||||
pub title: String,
|
||||
pub description: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue