Files
axum-async-graphql/src/domain/rolle/service.rs

18 lines
278 B
Rust
Raw Normal View History

mod create_user;
use super::repository::Repository;
use crate::database::DB;
#[derive(Debug)]
pub struct Service {
repo: Repository,
pub db: DB,
}
impl Service {
pub fn new(db: DB) -> Self {
let repo = Repository::new();
Self { repo, db }
}
}