refactoring rolle

This commit is contained in:
keiner
2024-06-21 23:08:18 +02:00
parent 44931afbe7
commit a290bcceb3
11 changed files with 53 additions and 9 deletions

View File

@@ -4,10 +4,10 @@ use ulid::Ulid;
use super::Service;
use crate::domain::rolle::entity;
use crate::domain::rolle::model::CreateRolleInput;
use crate::domain::rolle::model::RolleCreateInput;
impl Service {
pub async fn create_rolle(&self, input: CreateRolleInput) -> Result<entity::Rolle, Error> {
pub async fn create_rolle(&self, input: RolleCreateInput) -> Result<entity::Rolle, Error> {
// let username_exists = self.check_username_exists(&self.db, &input.name).await?;
// if username_exists {
// return Err(Error::UsernameAlreadyExists.into());