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

有关controller #2

Open
pandaiiz opened this issue Nov 18, 2019 · 4 comments
Open

有关controller #2

pandaiiz opened this issue Nov 18, 2019 · 4 comments

Comments

@pandaiiz
Copy link

可以考虑下在加一个controller层,封装一下逻辑,在routes里面引用一下看起来更优雅

@hanyucd
Copy link
Owner

hanyucd commented Nov 18, 2019

@en,en,你说的是。

@pandaiiz
Copy link
Author

受到你的代码的启发,我把services这边封装了一下,一个基类带有对该模块的增删改查,继承了基类的模块实例里面封装该模块的部分方法

@hanyucd
Copy link
Owner

hanyucd commented Nov 18, 2019

@pandaiiz 你有访问链接没,我看看,学习下。或者截图也行。

@pandaiiz
Copy link
Author

我刚开始改,迟点分享下

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