You've already forked AstralRinth
forked from didirus/AstralRinth
Allow gallery featuring, add gallery images to search, rename rejection reasons, transfer ownership route (#226)
This commit is contained in:
@@ -44,7 +44,7 @@ pub struct Project {
|
||||
/// The status of the project
|
||||
pub status: ProjectStatus,
|
||||
/// The rejection data of the project
|
||||
pub rejection_data: Option<RejectionReason>,
|
||||
pub moderator_message: Option<ModeratorMessage>,
|
||||
|
||||
/// The license of this project
|
||||
pub license: License,
|
||||
@@ -77,12 +77,18 @@ pub struct Project {
|
||||
pub donation_urls: Option<Vec<DonationLink>>,
|
||||
|
||||
/// A string of URLs to visual content featuring the project
|
||||
pub gallery: Vec<String>,
|
||||
pub gallery: Vec<GalleryItem>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct RejectionReason {
|
||||
pub reason: String,
|
||||
pub struct GalleryItem {
|
||||
pub url: String,
|
||||
pub featured: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct ModeratorMessage {
|
||||
pub message: String,
|
||||
pub body: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ use serde::{Deserialize, Serialize};
|
||||
pub struct TeamId(pub u64);
|
||||
|
||||
pub const OWNER_ROLE: &str = "Owner";
|
||||
pub const DEFAULT_ROLE: &str = "Member";
|
||||
|
||||
// TODO: permissions, role names, etc
|
||||
/// A team of users who control a project
|
||||
|
||||
Reference in New Issue
Block a user