added campaign

This commit is contained in:
vextrixes committed 2026-10-28 00:07:19 +01:00
1 parent 4ab89c0666
commit 4f50e7abd5
5 files changed
+21 -3

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Campaign {
pub message_id: i64,
pub priority: i64,
pub authorized: bool,
pub consent_required: bool,
pub delayed_show: i64,
pub image_url: String,
pub link_url: Option<String>,
pub salt: Option<String>,
}
+2
View File
@@ -2,6 +2,7 @@ mod absence;
mod api_info;
mod attachment;
//campaign
mod campaign;
mod error;
mod events;
mod gdpr;
@@ -23,6 +24,7 @@ mod user; //TODOS
pub use absence::{AbsenceDay, StudentAbsenceOverviewResponse, SubjectAbsence};
pub use api_info::ApiInfo;
pub use attachment::AttachmentInfo;
pub use campaign::Campaign;
pub use error::{Error, ModelState, StringArray};
pub use events::{Event, EventTime, EventType, Events};
pub use gdpr::{
+2 -2
View File
@@ -1,7 +1,7 @@
mod modules;
mod setting_modules;
mod user;
mod user_info;
pub use modules::*;
pub use setting_modules::*;
pub use user::*;
pub use user_info::*;
File renamed without changes.