Implemented public form appearance settings.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user