Skip to content

Commit

Permalink
chore: add UserService and Implementation for register
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesz6 committed Jul 1, 2024
1 parent 3c67ed9 commit 1460a71
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.greenfoxacademy.backend.services;

import com.greenfoxacademy.backend.models.User;
import org.springframework.stereotype.Service;

@Service

Check warning on line 6 in backend/src/main/java/com/greenfoxacademy/backend/services/UserService.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserService.java:6:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
public interface UserService {
public void register(User newUser);

Check warning on line 8 in backend/src/main/java/com/greenfoxacademy/backend/services/UserService.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 'method def modifier' has incorrect indentation level 4, expected level should be 2. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserService.java:8:5: warning: 'method def modifier' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.greenfoxacademy.backend.services;

import com.greenfoxacademy.backend.models.User;
import com.greenfoxacademy.backend.repositories.UserRepository;
import org.springframework.stereotype.Service;

@Service

Check warning on line 7 in backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java:7:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
public class UserServiceImpl implements UserService {
UserRepository userRepository;

Check warning on line 9 in backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 'member def type' has incorrect indentation level 4, expected level should be 2. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java:9:5: warning: 'member def type' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)


@Override

Check warning on line 12 in backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 'method def modifier' has incorrect indentation level 4, expected level should be 2. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java:12:5: warning: 'method def modifier' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
public void register(User newUser) {
userRepository.save(newUser);

Check warning on line 14 in backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 'method def' child has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java:14:9: warning: 'method def' child has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

Check warning on line 15 in backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java

View workflow job for this annotation

GitHub Actions / build

[testtool] reported by reviewdog 🐶 'method def rcurly' has incorrect indentation level 4, expected level should be 2. Raw Output: /github/workspace/./backend/src/main/java/com/greenfoxacademy/backend/services/UserServiceImpl.java:15:5: warning: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

0 comments on commit 1460a71

Please sign in to comment.