diff --git a/src/controller/mod.rs b/src/controller/mod.rs index b511e7728fb221d6569cef381e67591ab196459b..5f156e9c73197be3f221c2b7820a4eeb44ef4b5a 100644 --- a/src/controller/mod.rs +++ b/src/controller/mod.rs @@ -1,3 +1,5 @@ +pub mod notification; + use rocket::fairing::AdHoc; pub fn route_stage() -> AdHoc { diff --git a/src/controller/notification.rs b/src/controller/notification.rs new file mode 100644 index 0000000000000000000000000000000000000000..8aed8dbb2f8f241565d0b8deddf86b6469faf0f0 --- /dev/null +++ b/src/controller/notification.rs @@ -0,0 +1,5 @@ +use crate::model::notification::Notification; + use crate::model::subscriber::SubscriberRequest; + use crate::repository::notification::NotificationRepository; + use bambangshop_receiver::Result; + use rocket::serde::json::Json; \ No newline at end of file diff --git a/src/service/mod.rs b/src/service/mod.rs index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..392d39da5720a2e7d6953647b3c370e9ff728cd1 100644 --- a/src/service/mod.rs +++ b/src/service/mod.rs @@ -0,0 +1 @@ +pub mod notification; \ No newline at end of file diff --git a/src/service/notification.rs b/src/service/notification.rs new file mode 100644 index 0000000000000000000000000000000000000000..a3b3b11ebb859535675194c4f793cd546668fab7 --- /dev/null +++ b/src/service/notification.rs @@ -0,0 +1,14 @@ +use rocket::http::Status; + use rocket::log; + use rocket::serde::json::to_string; + use rocket::tokio; + use std::thread; + + use crate::model::notification::Notification; + use crate::model::subscriber::SubscriberRequest; + use crate::repository::notification::NotificationRepository; + use bambangshop_receiver::{compose_error_response, Result, APP_CONFIG, REQWEST_CLIENT}; + + pub struct NotificationService; + + impl NotificationService {} \ No newline at end of file