refactoring rolle
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user