Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] move code from AccountController to AccountService #2373

Merged
merged 9 commits into from
Jul 28, 2024

Conversation

Calvin979
Copy link
Contributor

@Calvin979 Calvin979 commented Jul 24, 2024

What's changed?

As a layer of interaction with front-end, controller should not contain any code logic.

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

tomsun28
tomsun28 previously approved these changes Jul 25, 2024
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines 25 to 32
/**
* Account service
*/
public interface AccountService {
Map<String, String> authGetToken(LoginDto loginDto) throws AuthenticationException;

RefreshTokenResponse refreshToken(String refreshToken) throws AuthenticationException;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi can you help add code comments in interface method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code comments has added

@Calvin979
Copy link
Contributor Author

@tomsun28 There are some controllers have the same problem like this pr.
Shall we create an issue for newcomers?

@tomsun28
Copy link
Contributor

@tomsun28 There are some controllers have the same problem like this pr. Shall we create an issue for newcomers?

hi, ok. 👍

@tomsun28 tomsun28 merged commit a9827bb into apache:master Jul 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants