Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 8a3c9b36 authored by Scallss's avatar Scallss
Browse files

Create Notification service struct skeleton.

parent bcc9e1fc
No related branches found
No related tags found
No related merge requests found
use rocket::fairing::AdHoc; use rocket::fairing::AdHoc;
pub mod notification;
pub fn route_stage() -> AdHoc { pub fn route_stage() -> AdHoc {
return AdHoc::on_ignite("Initializing controller routes...", |rocket| async { return AdHoc::on_ignite("Initializing controller routes...", |rocket| async {
rocket rocket
......
use rocket::serde::json::Json;
use bambangshop_receiver::Result;
use crate::model::notification::Notification;
use crate::model::subscriber::SubscriberRequest;
use crate::service::notification::NotificationService;
\ No newline at end of file
pub mod notification;
\ No newline at end of file
use std::thread;
use rocket::http::Status;
use rocket::log;
use rocket::serde::json::to_string;
use rocket::tokio;
use bambangshop_receiver::{APP_CONFIG, REQWEST_CLIENT, Result, compose_error_response};
use crate::model::notification::Notification;
use crate::model::subscriber::SubscriberRequest;
use crate::repository::notification::NotificationRepository;
pub struct NotificationService;
impl NotificationService {
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment