Implemented public form appearance settings.

This commit is contained in:
2024-02-22 21:54:00 +01:00
parent 653249287d
commit 2119c2e56b
15 changed files with 469 additions and 4 deletions
+15
View File
@@ -622,3 +622,18 @@ pub struct ChartData {
pub count: i64,
pub period: f64
}
#[derive(Clone, Debug, Default, Serialize, Deserialize, Validate)]
#[cfg_attr(feature = "ssr", derive(sqlx::FromRow))]
pub struct Appearance {
id: i32,
pub banner: Option<String>,
pub text: Option<String>,
pub title: Option<String>
}
impl Appearance {
pub fn id(&self) -> i32 {
self.id
}
}