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

登录鉴权,个人觉得用策略模式更好呀 #51

Open
chunfenghuayu1 opened this issue May 6, 2023 · 2 comments
Open

登录鉴权,个人觉得用策略模式更好呀 #51

chunfenghuayu1 opened this issue May 6, 2023 · 2 comments

Comments

@chunfenghuayu1
Copy link

No description provided.

@chunfenghuayu1
Copy link
Author

  1. 本地策略做登录
  2. jwt策略做鉴权
  3. jwt策略里面不应该写业务逻辑,直接让模块自己处理就好啦

@Mamong
Copy link

Mamong commented Feb 27, 2024

他写业务主要是为了通过抛出异常,自定义提示信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants