From 2081983bede0185c501d042dfec00b8f0749f835 Mon Sep 17 00:00:00 2001
From: rafliesa <rflisaa@gmail.com>
Date: Fri, 28 Mar 2025 09:21:06 +0700
Subject: [PATCH] Create Notification service struct skeleton.

---
 src/controller/mod.rs          | 2 ++
 src/controller/notification.rs | 6 ++++++
 src/service/mod.rs             | 1 +
 src/service/notification.rs    | 5 +++++
 4 files changed, 14 insertions(+)
 create mode 100644 src/controller/notification.rs
 create mode 100644 src/service/notification.rs

diff --git a/src/controller/mod.rs b/src/controller/mod.rs
index 861f657..87c8041 100644
--- a/src/controller/mod.rs
+++ b/src/controller/mod.rs
@@ -1,4 +1,5 @@
 pub mod product;
+pub mod notification;
 
 use rocket::fairing::AdHoc;
 
@@ -6,5 +7,6 @@ pub fn route_stage() -> AdHoc {
     return AdHoc::on_ignite("Initializing controller routes...", |rocket| async {
         rocket
             .mount("/product", routes![product::create, product::list, product::read, product::delete])
+            .mount("notification", routes![])
     });
 }
diff --git a/src/controller/notification.rs b/src/controller/notification.rs
new file mode 100644
index 0000000..622e593
--- /dev/null
+++ b/src/controller/notification.rs
@@ -0,0 +1,6 @@
+use rocket::response::status::Created;
+use rocket::serde::json::Json;
+
+use bambangshop::Result;
+use crate::model::subscriber::Subscriber;
+use crate::service::notification::NotificationService;
diff --git a/src/service/mod.rs b/src/service/mod.rs
index 68024e1..a08b7d3 100644
--- a/src/service/mod.rs
+++ b/src/service/mod.rs
@@ -1 +1,2 @@
 pub mod product;
+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 0000000..53fa057
--- /dev/null
+++ b/src/service/notification.rs
@@ -0,0 +1,5 @@
+use std::thread;
+
+use bambangshop::{Result, compose_error_response};
+use rocket::http::Status;
+use crate::model::notification::Notification;
-- 
GitLab